mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Minor fix so that the program exits upon a poolfree failure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7b56ce409f
commit
228090cfe8
@ -242,6 +242,7 @@ void poolfree(PoolTy *Pool, char *Node) {
|
||||
|
||||
if (!ALLOCATION_BEGINS(PS, Idx)) {
|
||||
printf("poolfree: Attempt to free middle of allocated array\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* Free the first node */
|
||||
|
Loading…
Reference in New Issue
Block a user