From: Daniel Berlin Date: Thu, 6 Apr 2017 18:52:53 +0000 (+0000) Subject: NewGVN: Fix a small formatting issue in performSymbolicLoadEvaluation. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8648b7dd7aa16d8fa85d3dc61072522848de7cef;p=llvm 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 --- 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; } }