]> granicus.if.org Git - llvm/commitdiff
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 8e8c581baf8b3199ba053eed98f55ae10f93c676..91f7292653e9fb407919a637de20338e0c44516e 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;
     }
   }