projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[InstCombine] Fix PR23751.
[oota-llvm.git]
/
lib
/
Transforms
/
InstCombine
/
InstCombineCompares.cpp
diff --git
a/lib/Transforms/InstCombine/InstCombineCompares.cpp
b/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 2dafa58d305e783a8fe7d488e5498223f9e1fc25..ab0d1b10c2455f5cf11dcfa30b6b4176dbb84189 100644
(file)
--- a/
lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/
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: