forked from OSchip/llvm-project
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. llvm-svn: 106283
This commit is contained in:
parent
92c11acdb8
commit
a4f46b3ef8
|
@ -807,7 +807,6 @@ void SelectionDAG::init(MachineFunction &mf) {
|
|||
SelectionDAG::~SelectionDAG() {
|
||||
allnodes_clear();
|
||||
delete Ordering;
|
||||
DbgInfo->clear();
|
||||
delete DbgInfo;
|
||||
}
|
||||
|
||||
|
@ -837,8 +836,6 @@ void SelectionDAG::clear() {
|
|||
delete Ordering;
|
||||
Ordering = new SDNodeOrdering();
|
||||
DbgInfo->clear();
|
||||
delete DbgInfo;
|
||||
DbgInfo = new SDDbgInfo();
|
||||
}
|
||||
|
||||
SDValue SelectionDAG::getSExtOrTrunc(SDValue Op, DebugLoc DL, EVT VT) {
|
||||
|
|
Loading…
Reference in New Issue