Fix what seems an obvious typo. Patch by Ivan Krasin. Problem

reported at http://habrahabr.ru/blogs/compilers/125626/.

llvm-svn: 136865
This commit is contained in:
Duncan Sands 2011-08-04 10:02:21 +00:00
parent e5b5dea9f2
commit 020c1947b7
1 changed files with 1 additions and 1 deletions

View 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;