Fix what seems an obvious typo. Patch by Ivan Krasin. Problem
[oota-llvm.git] / 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;