mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
[ImplicitNullChecks] Fix a memory leak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a5a3e2d58a
commit
efec6ccae3
@ -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
Block a user