summaryrefslogtreecommitdiffstats
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
commit14d021f5381e51b50514b7e52f14389d3f96f373 (patch)
tree55a2ba845de3e7f77f9445c3f2de554b4f82dd1d
parent7e8aaad1a09472afe26a86968ee2934604df98bb (diff)
downloadbcm5719-llvm-14d021f5381e51b50514b7e52f14389d3f96f373.tar.gz
bcm5719-llvm-14d021f5381e51b50514b7e52f14389d3f96f373.zip
fix test
llvm-svn: 76378
-rw-r--r--llvm/tools/bugpoint/Miscompilation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp
index d7c0e2d8ff9..d7be3c909e1 100644
--- a/llvm/tools/bugpoint/Miscompilation.cpp
+++ b/llvm/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));
}
}
OpenPOWER on IntegriCloud