diff options
author | Devang Patel <dpatel@apple.com> | 2009-02-03 18:46:32 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-02-03 18:46:32 +0000 |
commit | b51d40cf40eac676dda3ae9dfeb55822fa403394 (patch) | |
tree | 80485a57be58912c2573a25553325584232e89e6 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 1a3257bbf53eff4c7cfcbef972dd382f7baa7592 (diff) |
First initialize DAG otherwise dwarf writer is used uninitialized.
Duncan spotted this. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c34211505a..82cc3263ed 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -787,7 +787,7 @@ unsigned SelectionDAG::getMVTAlignment(MVT VT) const { } SelectionDAG::SelectionDAG(TargetLowering &tli, FunctionLoweringInfo &fli) - : TLI(tli), FLI(fli), + : TLI(tli), FLI(fli), DW(0), EntryNode(ISD::EntryToken, getVTList(MVT::Other)), Root(getEntryNode()) { AllNodes.push_back(&EntryNode); |