forked from OSchip/llvm-project
Free the VirtRegMap at the end of MachineFunction processing instead of at
the beginning of processing the next one. llvm-svn: 16605
This commit is contained in:
parent
e2b77d57c0
commit
ddd5229f3b
|
@ -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