From 14d021f5381e51b50514b7e52f14389d3f96f373 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 19 Jul 2009 20:19:25 +0000 Subject: [PATCH] fix test llvm-svn: 76378 --- llvm/tools/bugpoint/Miscompilation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index d7c0e2d8ff90..d7be3c909e17 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/tools/bugpoint/Miscompilation.cpp @@ -249,7 +249,8 @@ static void DisambiguateGlobalSymbols(Module *M) { } for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) { // Don't mangle asm names or intrinsics. - if (!I->hasName() || I->getName()[0] != 1 || I->getIntrinsicID() != 0) + if ((!I->hasName() || I->getName()[0] != 1) && + I->getIntrinsicID() == 0) I->setName(Mang.getMangledName(I)); } }