From e0d5c17921ddcdfce0fbfd7dd5dd993acb56304c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 19 Jul 2009 20:19:25 +0000 Subject: fix test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76378 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/Miscompilation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index d7c0e2d8ff..d7be3c909e 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/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)); } } -- cgit v1.2.3-18-g5258