diff options
| author | Torok Edwin <edwintorok@gmail.com> | 2010-03-30 11:17:48 +0000 |
|---|---|---|
| committer | Torok Edwin <edwintorok@gmail.com> | 2010-03-30 11:17:48 +0000 |
| commit | 01cb1b665da03e2b74c0724f71751e912ec8c2be (patch) | |
| tree | b3b4b991b3f6b97a7d9e8070dc6312dcd60fccce /include/llvm/CodeGen | |
| parent | 226dd2ba992b1f00491c10c59ca1889825bf92b6 (diff) | |
Reapply r99881 with some fixes: only call destructor in releaseMemory!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
| -rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index eb5901cf2f..1f198e6325 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -330,12 +330,7 @@ namespace llvm { } void clear() { - while (!valnos.empty()) { - VNInfo *VNI = valnos.back(); - valnos.pop_back(); - VNI->~VNInfo(); - } - + valnos.clear(); ranges.clear(); } |
