summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2017-04-06 18:52:53 +0000
committerDaniel Berlin <dberlin@dberlin.org>2017-04-06 18:52:53 +0000
commit5845e0549e2794274eb3e07edb66f462692efbd8 (patch)
tree7e45e28a5f73dfa9dec6ee43d549f9b0adbf09c7
parent1316a94ebc544660f2a0e93b2f3564e932db9d24 (diff)
downloadbcm5719-llvm-5845e0549e2794274eb3e07edb66f462692efbd8.tar.gz
bcm5719-llvm-5845e0549e2794274eb3e07edb66f462692efbd8.zip
NewGVN: Fix a small formatting issue in performSymbolicLoadEvaluation.
llvm-svn: 299683
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index 8e8c581baf8..91f7292653e 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;
}
}
OpenPOWER on IntegriCloud