summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-11-20 11:48:58 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-11-20 11:48:58 +0000
commita0bffc0c1197b5a028bd85119c2584beb499dfa2 (patch)
tree86520597ea1f7de78054b6e8d89446713b5be16e /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parent101f1d82ff97ed4e574ed986c3e3b0ece7c1dca8 (diff)
downloadbcm5719-llvm-a0bffc0c1197b5a028bd85119c2584beb499dfa2.tar.gz
bcm5719-llvm-a0bffc0c1197b5a028bd85119c2584beb499dfa2.zip
Fix a typo
llvm-svn: 222426
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 4bedf0e2fb9..3186e6fbe12 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -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
OpenPOWER on IntegriCloud