From 5845e0549e2794274eb3e07edb66f462692efbd8 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. llvm-svn: 299683 --- llvm/lib/Transforms/Scalar/NewGVN.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index 8e8c581..91f7292 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/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.7.4