mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Verify that the function and exception table have been allocated
before freeing them. llvm-svn: 84859
This commit is contained in:
parent
15030fc8e7
commit
7955fa8d35
@ -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