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 2a536740a4
commit 7e8017cce7
1 changed files with 2 additions and 2 deletions

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,