diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-03-24 20:25:25 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-03-24 20:25:25 +0000 |
commit | 4d87012eb3d37462454e2d95151711501e81dc9c (patch) | |
tree | b24cd4c080a7e6b49a246187a6fce4cde5aeacee /llvm/lib/CodeGen | |
parent | c12c2d9bb489b550d7735830b3932273b5bff0f0 (diff) | |
download | bcm5719-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.cpp | 4 |
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(); |