llvm.org GIT mirror llvm / ee9a19c
Merge from mainline. First initialize DAG otherwise dwarf writer is used uninitialized. Duncan spotted this. Thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63793 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 11 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
786786 }
787787
788788 SelectionDAG::SelectionDAG(TargetLowering &tli, FunctionLoweringInfo &fli)
789 : TLI(tli), FLI(fli),
789 : TLI(tli), FLI(fli), DW(0),
790790 EntryNode(ISD::EntryToken, getVTList(MVT::Other)),
791791 Root(getEntryNode()) {
792792 AllNodes.push_back(&EntryNode);
312312 RegInfo = &MF->getRegInfo();
313313 DOUT << "\n\n\n=== " << Fn.getName() << "\n";
314314
315 FuncInfo->set(Fn, *MF, *CurDAG, EnableFastISel);
316315 MachineModuleInfo *MMI = getAnalysisIfAvailable();
317316 DwarfWriter *DW = getAnalysisIfAvailable();
318317 CurDAG->init(*MF, MMI, DW);
318 FuncInfo->set(Fn, *MF, *CurDAG, EnableFastISel);
319319 SDL->init(GFI, *AA);
320320
321321 for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I)