mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
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
This commit is contained in:
parent
06af2ba809
commit
6349668fca
@ -220,6 +220,14 @@ MachineVerifier::runOnMachineFunction(MachineFunction &MF)
|
||||
llvm_report_error(Msg.str());
|
||||
}
|
||||
|
||||
// Clean up.
|
||||
regsLive.clear();
|
||||
regsDefined.clear();
|
||||
regsDead.clear();
|
||||
regsKilled.clear();
|
||||
regsLiveInButUnused.clear();
|
||||
MBBInfoMap.clear();
|
||||
|
||||
return false; // no changes
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user