From 5d68aa7913fc5a66ecbd6388d3ed02ab1ffec7be Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Thu, 22 Sep 2016 15:08:09 +0000 Subject: [PATCH] GVN-hoist: fix typo llvm-svn: 282165 --- llvm/lib/Transforms/Scalar/GVNHoist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/GVNHoist.cpp b/llvm/lib/Transforms/Scalar/GVNHoist.cpp index 023d1255064c..8b2164c5071a 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(&I1)) + if (isa(&I1)) break; if (auto *Load = dyn_cast(&I1))