[llvm-commits] [llvm] r76377 - /llvm/trunk/tools/bugpoint/Miscompilation.cpp

Chris Lattner sabre at nondot.org
Sun Jul 19 13:19:04 PDT 2009


Author: lattner
Date: Sun Jul 19 15:19:04 2009
New Revision: 76377

URL: http://llvm.org/viewvc/llvm-project?rev=76377&view=rev
Log:
DisambiguateGlobalSymbols should not mangle intrinsics.

Modified:
    llvm/trunk/tools/bugpoint/Miscompilation.cpp

Modified: llvm/trunk/tools/bugpoint/Miscompilation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/Miscompilation.cpp?rev=76377&r1=76376&r2=76377&view=diff

==============================================================================
--- llvm/trunk/tools/bugpoint/Miscompilation.cpp (original)
+++ llvm/trunk/tools/bugpoint/Miscompilation.cpp Sun Jul 19 15:19:04 2009
@@ -248,8 +248,8 @@
       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));
   }
 }





More information about the llvm-commits mailing list