diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-03 20:27:40 +0100 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-03 20:27:40 +0100 |
commit | 717965ae578040d0a8590eb90b93c9e3168cb995 (patch) | |
tree | e8ce39a9286a6c65737556c67162f37b6905e31e /llvm/lib/Analysis/MemorySSA.cpp | |
parent | d825ed24d2f324eb02a3a91fdc64f9576f36f45b (diff) | |
download | bcm5719-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.cpp | 1 |
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 |