summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InstructionSimplify.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-08-04 10:02:21 +0000
committerDuncan Sands <baldrick@free.fr>2011-08-04 10:02:21 +0000
commit020c1947b74d4d230fbe942fee7bb8335f75259c (patch)
tree9d97ce574dc8b51b9def61e585d292d951e89a7e /llvm/lib/Analysis/InstructionSimplify.cpp
parente5b5dea9f259ea96e852bb3757e6d4ce5ac3eb94 (diff)
downloadbcm5719-llvm-020c1947b74d4d230fbe942fee7bb8335f75259c.tar.gz
bcm5719-llvm-020c1947b74d4d230fbe942fee7bb8335f75259c.zip
Fix what seems an obvious typo. Patch by Ivan Krasin. Problem
reported at http://habrahabr.ru/blogs/compilers/125626/. llvm-svn: 136865
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 045a1267ee6..cfff9c03c83 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -1888,7 +1888,7 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
return V;
break;
case Instruction::Shl: {
- bool NUW = LBO->hasNoUnsignedWrap() && LBO->hasNoUnsignedWrap();
+ bool NUW = LBO->hasNoUnsignedWrap() && RBO->hasNoUnsignedWrap();
bool NSW = LBO->hasNoSignedWrap() && RBO->hasNoSignedWrap();
if (!NUW && !NSW)
break;
OpenPOWER on IntegriCloud