diff options
| author | Dan Gohman <gohman@apple.com> | 2010-06-18 15:36:18 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-06-18 15:36:18 +0000 |
| commit | 23cb629501cb8a9881c02bd7adc3bb03a0984fa3 (patch) | |
| tree | eb5120159e5650f848e04f9e75e810a0e6614b05 /lib/CodeGen | |
| parent | 4e3d982962b5816515cbe36e73a9f41ed5af6673 (diff) | |
| download | external_llvm-23cb629501cb8a9881c02bd7adc3bb03a0984fa3.zip external_llvm-23cb629501cb8a9881c02bd7adc3bb03a0984fa3.tar.gz external_llvm-23cb629501cb8a9881c02bd7adc3bb03a0984fa3.tar.bz2 | |
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
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 75cb2c2..91df1ab 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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) { |
