aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/bugpoint/Miscompilation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 83054f3..d7c0e2d 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -248,8 +248,8 @@ static void DisambiguateGlobalSymbols(Module *M) {
I->setName(Mang.getMangledName(I));
}
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) {
- // Don't mangle asm names.
- if (!I->hasName() || I->getName()[0] != 1)
+ // Don't mangle asm names or intrinsics.
+ if (!I->hasName() || I->getName()[0] != 1 || I->getIntrinsicID() != 0)
I->setName(Mang.getMangledName(I));
}
}