summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Pop <sebpop@gmail.com>2016-09-22 15:08:09 +0000
committerSebastian Pop <sebpop@gmail.com>2016-09-22 15:08:09 +0000
commit5d68aa7913fc5a66ecbd6388d3ed02ab1ffec7be (patch)
treeaaf50258a0d8e603b3e9810fc854e039c1b9c39e
parent65fd2fc7b407ca9dafc1b0a87df281b38e2eefb0 (diff)
downloadbcm5719-llvm-5d68aa7913fc5a66ecbd6388d3ed02ab1ffec7be.tar.gz
bcm5719-llvm-5d68aa7913fc5a66ecbd6388d3ed02ab1ffec7be.zip
GVN-hoist: fix typo
llvm-svn: 282165
-rw-r--r--llvm/lib/Transforms/Scalar/GVNHoist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVNHoist.cpp b/llvm/lib/Transforms/Scalar/GVNHoist.cpp
index 023d1255064..8b2164c5071 100644
--- a/llvm/lib/Transforms/Scalar/GVNHoist.cpp
+++ b/llvm/lib/Transforms/Scalar/GVNHoist.cpp
@@ -892,7 +892,7 @@ private:
break;
// Do not value number terminator instructions.
- if (!isa<TerminatorInst>(&I1))
+ if (isa<TerminatorInst>(&I1))
break;
if (auto *Load = dyn_cast<LoadInst>(&I1))
OpenPOWER on IntegriCloud