summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/MemorySSA.cpp
diff options
context:
space:
mode:
authorDávid Bolvanský <david.bolvansky@gmail.com>2019-11-03 20:27:40 +0100
committerDávid Bolvanský <david.bolvansky@gmail.com>2019-11-03 20:27:40 +0100
commit717965ae578040d0a8590eb90b93c9e3168cb995 (patch)
treee8ce39a9286a6c65737556c67162f37b6905e31e /llvm/lib/Analysis/MemorySSA.cpp
parentd825ed24d2f324eb02a3a91fdc64f9576f36f45b (diff)
downloadbcm5719-llvm-717965ae578040d0a8590eb90b93c9e3168cb995.tar.gz
bcm5719-llvm-717965ae578040d0a8590eb90b93c9e3168cb995.zip
[MemorySSA] Fixed null check after dereferencing warning. NFCI.
Diffstat (limited to 'llvm/lib/Analysis/MemorySSA.cpp')
-rw-r--r--llvm/lib/Analysis/MemorySSA.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/MemorySSA.cpp b/llvm/lib/Analysis/MemorySSA.cpp
index cfb8b7e7dcb..da2d0f81748 100644
--- a/llvm/lib/Analysis/MemorySSA.cpp
+++ b/llvm/lib/Analysis/MemorySSA.cpp
@@ -1229,6 +1229,7 @@ MemorySSA::MemorySSA(Function &Func, AliasAnalysis *AA, DominatorTree *DT)
// safe because there are no CFG changes while building MemorySSA and can
// significantly reduce the time spent by the compiler in AA, because we will
// make queries about all the instructions in the Function.
+ assert(AA && "No alias analysis?");
BatchAAResults BatchAA(*AA);
buildMemorySSA(BatchAA);
// Intentionally leave AA to nullptr while building so we don't accidently
OpenPOWER on IntegriCloud