forked from OSchip/llvm-project
parent
b771845461
commit
c3a8e398a2
|
@ -320,7 +320,7 @@ void ImplicitNullChecks::rewriteNullChecks(
|
|||
// touch the successors list for any basic block since we haven't changed
|
||||
// control flow, we've just made it implicit.
|
||||
insertFaultingLoad(NC.MemOperation, NC.CheckBlock, HandlerLabel);
|
||||
NC.MemOperation->removeFromParent();
|
||||
NC.MemOperation->eraseFromParent();
|
||||
NC.CheckOperation->eraseFromParent();
|
||||
|
||||
// Insert an *unconditional* branch to not-null successor.
|
||||
|
|
Loading…
Reference in New Issue