mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Free the VirtRegMap at the end of MachineFunction processing instead of at
the beginning of processing the next one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c4d88d369
commit
510a3ea646
@ -41,7 +41,6 @@ namespace {
|
||||
static unsigned numIntervals = 0;
|
||||
|
||||
class RA : public MachineFunctionPass {
|
||||
private:
|
||||
MachineFunction* mf_;
|
||||
const TargetMachine* tm_;
|
||||
const MRegisterInfo* mri_;
|
||||
@ -150,6 +149,7 @@ bool RA::runOnMachineFunction(MachineFunction &fn) {
|
||||
|
||||
spiller_->runOnMachineFunction(*mf_, *vrm_);
|
||||
|
||||
vrm_.reset(); // Free the VirtRegMap
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user