aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-09-30 02:02:33 +0000
committerChris Lattner <sabre@nondot.org>2004-09-30 02:02:33 +0000
commit510a3ea646c6f42a565de273b20766e6946ed691 (patch)
treeee568167cf5aa480236c6e64765851f032b74d4d /lib/CodeGen/RegAllocLinearScan.cpp
parent8c4d88d3697835371ecf6823f4142af13603ad2d (diff)
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
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp2
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;
}