mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +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…
x
Reference in New Issue
Block a user