summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f9f464d)
raw | patch | inline | side by side (parent: f9f464d)
author | Timur Iskhodzhanov <timurrrr@google.com> | |
Thu, 20 Nov 2014 11:48:58 +0000 (11:48 +0000) | ||
committer | Timur Iskhodzhanov <timurrrr@google.com> | |
Thu, 20 Nov 2014 11:48:58 +0000 (11:48 +0000) |
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222426 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp | patch | blob | history |
index 4bedf0e2fb9e4631bdf5460260f717b2e7d4637c..3186e6fbe12979ca7639b06afb2e0a8d829a5eac 100644 (file)
/// 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