Fix what seems an obvious typo. Patch by Ivan Krasin. Problem
authorDuncan Sands <baldrick@free.fr>
Thu, 4 Aug 2011 10:02:21 +0000 (10:02 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 4 Aug 2011 10:02:21 +0000 (10:02 +0000)
reported at http://habrahabr.ru/blogs/compilers/125626/.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136865 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/InstructionSimplify.cpp

index 045a1267ee6027856609efcda2da69b5c7985e47..cfff9c03c837f325ab839ed3596b512f68f58b33 100644 (file)
@@ -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;