projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reapply r99881 with some fixes: only call destructor in releaseMemory!
[oota-llvm.git]
/
include
/
llvm
/
CodeGen
/
LiveInterval.h
diff --git
a/include/llvm/CodeGen/LiveInterval.h
b/include/llvm/CodeGen/LiveInterval.h
index eb5901cf2f17ff67e4d3ffa225bb2d34731522b5..1f198e6325263712bf4490ac42c490d15fb22390 100644
(file)
--- 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();
}