1
0
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:
Nicolas Geoffray 2009-10-22 14:35:57 +00:00
parent 15030fc8e7
commit 7955fa8d35

View File

@ -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,