summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-03-24 20:25:25 +0000
committerBob Wilson <bob.wilson@apple.com>2010-03-24 20:25:25 +0000
commit4d87012eb3d37462454e2d95151711501e81dc9c (patch)
treeb24cd4c080a7e6b49a246187a6fce4cde5aeacee /llvm/lib/CodeGen
parentc12c2d9bb489b550d7735830b3932273b5bff0f0 (diff)
downloadbcm5719-llvm-4d87012eb3d37462454e2d95151711501e81dc9c.tar.gz
bcm5719-llvm-4d87012eb3d37462454e2d95151711501e81dc9c.zip
Revert Edwin's change that is breaking MultiSource/Applications/ClamAV/clamscan.
--- Reverse-merging r99400 into '.': D test/CodeGen/Generic/2010-03-24-liveintervalleak.ll U lib/CodeGen/LiveIntervalAnalysis.cpp llvm-svn: 99419
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index f0baba341bb..b3e921689c7 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -85,10 +85,8 @@ void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const {
void LiveIntervals::releaseMemory() {
// Free the live intervals themselves.
for (DenseMap<unsigned, LiveInterval*>::iterator I = r2iMap_.begin(),
- E = r2iMap_.end(); I != E; ++I) {
- I->second->clear();
+ E = r2iMap_.end(); I != E; ++I)
delete I->second;
- }
r2iMap_.clear();
OpenPOWER on IntegriCloud