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 | 7e8aaad1a09472afe26a86968ee2934604df98bb (patch) | |
| tree | b6bd72c2c38c858ff88d27545990105a70e3b52e /llvm/tools/bugpoint | |
| parent | 9662cd32276053c5843f98b1e61807be5dc850ab (diff) | |
| download | bcm5719-llvm-7e8aaad1a09472afe26a86968ee2934604df98bb.tar.gz bcm5719-llvm-7e8aaad1a09472afe26a86968ee2934604df98bb.zip  | |
DisambiguateGlobalSymbols should not mangle intrinsics.
llvm-svn: 76377
Diffstat (limited to 'llvm/tools/bugpoint')
| -rw-r--r-- | llvm/tools/bugpoint/Miscompilation.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index 83054f30b0a..d7c0e2d8ff9 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/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));    }  }  | 

