aboutsummaryrefslogtreecommitdiff
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-19 20:19:25 +0000
committerChris Lattner <sabre@nondot.org>2009-07-19 20:19:25 +0000
commite0d5c17921ddcdfce0fbfd7dd5dd993acb56304c (patch)
treefb050490bd103724918976052fc94973075b3101 /tools/bugpoint
parent4285d15703d4282cccb1e311b798917abd06beaf (diff)
fix test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/Miscompilation.cpp3
1 files changed, 2 insertions, 1 deletions
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));
}
}