mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-29 13:54:57 +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
|
// touch the successors list for any basic block since we haven't changed
|
||||||
// control flow, we've just made it implicit.
|
// control flow, we've just made it implicit.
|
||||||
insertFaultingLoad(NC.MemOperation, NC.CheckBlock, HandlerLabel);
|
insertFaultingLoad(NC.MemOperation, NC.CheckBlock, HandlerLabel);
|
||||||
NC.MemOperation->removeFromParent();
|
NC.MemOperation->eraseFromParent();
|
||||||
NC.CheckOperation->eraseFromParent();
|
NC.CheckOperation->eraseFromParent();
|
||||||
|
|
||||||
// Insert an *unconditional* branch to not-null successor.
|
// Insert an *unconditional* branch to not-null successor.
|
||||||
|
Loading…
Reference in New Issue
Block a user