diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-19 20:19:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-19 20:19:04 +0000 |
commit | 4285d15703d4282cccb1e311b798917abd06beaf (patch) | |
tree | e284d565c7d50265333359a958d883ef85c7fb25 | |
parent | a786c7b90cfacf1c36c975ad35c3b793c232e3d8 (diff) | |
download | external_llvm-4285d15703d4282cccb1e311b798917abd06beaf.zip external_llvm-4285d15703d4282cccb1e311b798917abd06beaf.tar.gz external_llvm-4285d15703d4282cccb1e311b798917abd06beaf.tar.bz2 |
DisambiguateGlobalSymbols should not mangle intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76377 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 4 |
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)); } } |