1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-02-26 10:29:36 +00:00

Don't call clear() on DbgInfo when it's going to be deleted anyway.

Don't replace the old DbgInfo with a new one when clear() on the
old one is sufficient.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106283 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-06-18 15:36:18 +00:00
parent 027657db7c
commit c97df860dd

@ -807,7 +807,6 @@ void SelectionDAG::init(MachineFunction &mf) {
SelectionDAG::~SelectionDAG() { SelectionDAG::~SelectionDAG() {
allnodes_clear(); allnodes_clear();
delete Ordering; delete Ordering;
DbgInfo->clear();
delete DbgInfo; delete DbgInfo;
} }
@ -837,8 +836,6 @@ void SelectionDAG::clear() {
delete Ordering; delete Ordering;
Ordering = new SDNodeOrdering(); Ordering = new SDNodeOrdering();
DbgInfo->clear(); DbgInfo->clear();
delete DbgInfo;
DbgInfo = new SDDbgInfo();
} }
SDValue SelectionDAG::getSExtOrTrunc(SDValue Op, DebugLoc DL, EVT VT) { SDValue SelectionDAG::getSExtOrTrunc(SDValue Op, DebugLoc DL, EVT VT) {