mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Verify that the function and exception table have been allocated
before freeing them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9772acdb47
commit
71e0b7c560
@ -490,13 +490,13 @@ namespace {
|
||||
/// deallocateFunctionBody - Deallocate all memory for the specified
|
||||
/// function body.
|
||||
void deallocateFunctionBody(void *Body) {
|
||||
deallocateBlock(Body);
|
||||
if (Body) deallocateBlock(Body);
|
||||
}
|
||||
|
||||
/// deallocateExceptionTable - Deallocate memory for the specified
|
||||
/// exception table.
|
||||
void deallocateExceptionTable(void *ET) {
|
||||
deallocateBlock(ET);
|
||||
if (ET) deallocateBlock(ET);
|
||||
}
|
||||
|
||||
/// setMemoryWritable - When code generation is in progress,
|
||||
|
Loading…
Reference in New Issue
Block a user