summaryrefslogtreecommitdiffstats
path: root/polly/lib/Support
diff options
context:
space:
mode:
authorEli Friedman <efriedma@codeaurora.org>2018-05-18 21:57:44 +0000
committerEli Friedman <efriedma@codeaurora.org>2018-05-18 21:57:44 +0000
commite6ed0323cc513e3f6a05587905853baf1c7897e4 (patch)
tree83f3177bc41af0e202d21e1fa28b627275e302b8 /polly/lib/Support
parent9fc8593a774941bdd18b20e987cfd62aa353bee8 (diff)
downloadbcm5719-llvm-e6ed0323cc513e3f6a05587905853baf1c7897e4.tar.gz
bcm5719-llvm-e6ed0323cc513e3f6a05587905853baf1c7897e4.zip
[SCEVAffinator] BB can be null; don't use it to get the LLVMContext.
Fixes post-commit review comment on r332309. llvm-svn: 332775
Diffstat (limited to 'polly/lib/Support')
-rw-r--r--polly/lib/Support/SCEVAffinator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Support/SCEVAffinator.cpp b/polly/lib/Support/SCEVAffinator.cpp
index e31b1028599..6c38e2a41f3 100644
--- a/polly/lib/Support/SCEVAffinator.cpp
+++ b/polly/lib/Support/SCEVAffinator.cpp
@@ -538,5 +538,5 @@ PWACtx SCEVAffinator::complexityBailout() {
// and return a constant zero.
const DebugLoc &Loc = BB ? BB->getTerminator()->getDebugLoc() : DebugLoc();
S->invalidate(COMPLEXITY, Loc);
- return visit(SE.getZero(Type::getInt32Ty(BB->getContext())));
+ return visit(SE.getZero(Type::getInt32Ty(S->getFunction().getContext())));
}
OpenPOWER on IntegriCloud