forked from OSchip/llvm-project
MemorySSAUpdater::applyInsertUpdates - silence static analyzer dyn_cast<MemoryAccess> null dereference warning. NFCI.
The static analyzer is warning about a potential null dereference, but we should be able to use cast<MemoryAccess> directly and if not assert will fire for us. llvm-svn: 373467
This commit is contained in:
parent
65e1150988
commit
b635964abc
|
@ -1082,7 +1082,7 @@ void MemorySSAUpdater::applyInsertUpdates(ArrayRef<CFGUpdate> Updates,
|
|||
for (; UI != E;) {
|
||||
Use &U = *UI;
|
||||
++UI;
|
||||
MemoryAccess *Usr = dyn_cast<MemoryAccess>(U.getUser());
|
||||
MemoryAccess *Usr = cast<MemoryAccess>(U.getUser());
|
||||
if (MemoryPhi *UsrPhi = dyn_cast<MemoryPhi>(Usr)) {
|
||||
BasicBlock *DominatedBlock = UsrPhi->getIncomingBlock(U);
|
||||
if (!DT.dominates(DominatingBlock, DominatedBlock))
|
||||
|
|
Loading…
Reference in New Issue