OSDN Git Service

NewGVN: Fix a small formatting issue in performSymbolicLoadEvaluation.
authorDaniel Berlin <dberlin@dberlin.org>
Thu, 6 Apr 2017 18:52:53 +0000 (18:52 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Thu, 6 Apr 2017 18:52:53 +0000 (18:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299683 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/NewGVN.cpp

index 8e8c581..91f7292 100644 (file)
@@ -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;
     }
   }