projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2ded3d
)
MemorySSA tryOptimizePhi - assert that we've found a DefChainEnd. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 13:09:04 +0000
(13:09 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 13:09:04 +0000
(13:09 +0000)
Silences static analyzer null dereference warning.
llvm-svn: 373466
llvm/lib/Analysis/MemorySSA.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/MemorySSA.cpp
b/llvm/lib/Analysis/MemorySSA.cpp
index
cc3bca1
..
cfb8b7e
100644
(file)
--- a/
llvm/lib/Analysis/MemorySSA.cpp
+++ b/
llvm/lib/Analysis/MemorySSA.cpp
@@
-873,6
+873,7
@@
template <class AliasAnalysisType> class ClobberWalker {
if (!DefChainEnd)
for (auto *MA : def_chain(const_cast<MemoryAccess *>(Target)))
DefChainEnd = MA;
+ assert(DefChainEnd && "Failed to find dominating phi/liveOnEntry");
// If any of the terminated paths don't dominate the phi we'll try to
// optimize, we need to figure out what they are and quit.