diff options
-rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 880d541e50..86aada3b80 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -145,6 +145,16 @@ namespace llvm { while (I->end <= Pos) ++I; return I; } + + void clear() { + while (!valnos.empty()) { + VNInfo *VNI = valnos.back(); + valnos.pop_back(); + VNI->~VNInfo(); + } + + ranges.clear(); + } /// isStackSlot - Return true if this is a stack slot interval. /// |