summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-12-15 18:21:18 +0000
committerDevang Patel <dpatel@apple.com>2011-12-15 18:21:18 +0000
commit7bbc1e56f5af417d582612236856b183113d5a91 (patch)
tree289a6f7a6fd892a1762debf584fd898128ddebc0 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parenta323c4c3cd82b66fd89ec5032075a43e693ef3fe (diff)
downloadbcm5719-llvm-7bbc1e56f5af417d582612236856b183113d5a91.tar.gz
bcm5719-llvm-7bbc1e56f5af417d582612236856b183113d5a91.zip
Update DebugLoc while merging nodes at -O0.
Patch by Kyriakos Georgiou! llvm-svn: 146670
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 477ec807edd..3c950595b6d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -266,7 +266,7 @@ SelectionDAGISel::SelectionDAGISel(const TargetMachine &tm,
CodeGenOpt::Level OL) :
MachineFunctionPass(ID), TM(tm), TLI(*tm.getTargetLowering()),
FuncInfo(new FunctionLoweringInfo(TLI)),
- CurDAG(new SelectionDAG(tm)),
+ CurDAG(new SelectionDAG(tm, OL)),
SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)),
GFI(),
OptLevel(OL),
OpenPOWER on IntegriCloud