diff options
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index eda105f10c..2a5898a89d 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -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; } |