Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222426 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
timurrrr committed Nov 20, 2014
1 parent f9f464d commit 6a490ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transforms/Utils/SimplifyCFG.cpp
Original file line number Diff line number Diff line change
@@ -392,7 +392,7 @@ struct ConstantComparesGatherer {
/// 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

0 comments on commit 6a490ac

Please sign in to comment.