Clean out per-function data after the machine code verifier is done with it.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 8 Aug 2009 15:34:50 +0000 (15:34 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 8 Aug 2009 15:34:50 +0000 (15:34 +0000)
commit6349668fca491cfe1bf7c754fa0d7eb4255023b1
tree48ad29017874b64e482ca7a06b9cddbfa4fcf056
parent06af2ba80991e57063abe55b84b32e650973f1ac
Clean out per-function data after the machine code verifier is done with it.

Also don't dereference old pointers after they have been deleted causing
random crashes when enabling the machine code verifier.

Ahem...

I have not included a test case for the crash. It hapened when enabling the
verifier on CodeGen/X86/2009-08-06-branchfolder-crash.ll.

The crash depends on an MBB being allocated at the same address as a
previously deleted MBB. I don't think that can be reproduced reliably.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78472 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineVerifier.cpp