summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-06-05 18:04:42 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-06-05 18:04:42 +0000
commit72cb5e1087ff018ba9eb0a226d41a8cc5bfe6a03 (patch)
tree28dd464f9fde93ee2476394cd9c0d3c6796b0b09 /llvm/lib
parentcdffc36c119a7933c3e8871ccd0028f41d5b5feb (diff)
downloadbcm5719-llvm-72cb5e1087ff018ba9eb0a226d41a8cc5bfe6a03.tar.gz
bcm5719-llvm-72cb5e1087ff018ba9eb0a226d41a8cc5bfe6a03.zip
[InstCombine] Fix PR23751.
PR23751 was caused by a missing ``break;`` in r234388. llvm-svn: 239171
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 2dafa58d305..ab0d1b10c24 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -2149,6 +2149,7 @@ bool InstCombiner::OptimizeOverflowCheck(OverflowCheckFlavor OCF, Value *LHS,
if (WillNotOverflowSignedAdd(LHS, RHS, OrigI))
return SetResult(Builder->CreateNSWAdd(LHS, RHS), Builder->getFalse(),
true);
+ break;
}
case OCF_UNSIGNED_SUB:
OpenPOWER on IntegriCloud