Verify that the function and exception table have been allocated
before freeing them. llvm-svn: 84859
This commit is contained in:
parent
2a536740a4
commit
7e8017cce7
|
@ -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