aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-03-05 01:22:47 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-03-05 01:22:47 +0000
commitf79d6246e6b6a83e31a1360e80f828707a51f98e (patch)
tree6d025f8ece9698e749cb790aa3dfc65e5e44194c
parent8550592b801d752753c922e0831d37da8013fc4b (diff)
downloadexternal_llvm-f79d6246e6b6a83e31a1360e80f828707a51f98e.zip
external_llvm-f79d6246e6b6a83e31a1360e80f828707a51f98e.tar.gz
external_llvm-f79d6246e6b6a83e31a1360e80f828707a51f98e.tar.bz2
Add missing break for Intrinsic::objectsize case. It was falling through to the following Intrinsic::bswap code. I have no idea why it wasn't breaking stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97774 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/InstCombine/InstCombineCalls.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 835d149..88d8abd 100644
--- a/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -361,6 +361,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
return ReplaceInstUsesWith(CI, RetVal);
}
+ break;
}
case Intrinsic::bswap:
// bswap(bswap(x)) -> x