Fix a typo

llvm-svn: 222426
This commit is contained in:
Timur Iskhodzhanov 2014-11-20 11:48:58 +00:00
parent 101f1d82ff
commit a0bffc0c11
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ private:
/// it wasn't set before or if the new value is the same as the old one
bool setValueOnce(Value *NewVal) {
if(CompValue && CompValue != NewVal) return false;
return CompValue = NewVal;
return CompValue == NewVal;
}
/// Try to match Instruction "I" as a comparison against a constant and