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:
d842f2e
)
[MemorySSA] Verify MSSAUpdater exists.
author
Alina Sbirlea
<asbirlea@google.com>
Thu, 5 Sep 2019 16:58:15 +0000
(16:58 +0000)
committer
Alina Sbirlea
<asbirlea@google.com>
Thu, 5 Sep 2019 16:58:15 +0000
(16:58 +0000)
llvm-svn: 371087
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
index
45c0b02
..
d4c718d
100644
(file)
--- a/
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
@@
-251,7
+251,8
@@
bool llvm::MergeBlockIntoPredecessor(BasicBlock *BB, DomTreeUpdater *DTU,
for (auto &DVI : DbgValues) {
auto R = DbgValueSet.insert({DVI->getVariable(), DVI->getExpression()});
if (!R.second) {
- MSSAU->removeMemoryAccess(DVI);
+ if (MSSAU)
+ MSSAU->removeMemoryAccess(DVI);
DVI->eraseFromParent();
}
}