From 8648b7dd7aa16d8fa85d3dc61072522848de7cef Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Thu, 6 Apr 2017 18:52:53 +0000 Subject: [PATCH] NewGVN: Fix a small formatting issue in performSymbolicLoadEvaluation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299683 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/NewGVN.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Scalar/NewGVN.cpp b/lib/Transforms/Scalar/NewGVN.cpp index 8e8c581baf8..91f7292653e 100644 --- a/lib/Transforms/Scalar/NewGVN.cpp +++ b/lib/Transforms/Scalar/NewGVN.cpp @@ -1079,9 +1079,9 @@ const Expression *NewGVN::performSymbolicLoadEvaluation(Instruction *I) { // defining access has a different type, or it is a pointer produced by // certain memory operations that cause the memory to have a fixed value // (IE things like calloc). - const Expression *CoercionResult = performSymbolicLoadCoercion( - LI->getType(), LoadAddressLeader, LI, DefiningInst, DefiningAccess); - if (CoercionResult) + if (const auto *CoercionResult = + performSymbolicLoadCoercion(LI->getType(), LoadAddressLeader, LI, + DefiningInst, DefiningAccess)) return CoercionResult; } } -- 2.40.0