forked from OSchip/llvm-project
First initialize DAG otherwise dwarf writer is used uninitialized.
Duncan spotted this. Thanks! llvm-svn: 63641
This commit is contained in:
parent
73eff2e6e8
commit
70da8e8425
|
@ -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);
|
||||
|
|
|
@ -313,10 +313,10 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) {
|
|||
RegInfo = &MF->getRegInfo();
|
||||
DOUT << "\n\n\n=== " << Fn.getName() << "\n";
|
||||
|
||||
FuncInfo->set(Fn, *MF, *CurDAG, EnableFastISel);
|
||||
MachineModuleInfo *MMI = getAnalysisIfAvailable<MachineModuleInfo>();
|
||||
DwarfWriter *DW = getAnalysisIfAvailable<DwarfWriter>();
|
||||
CurDAG->init(*MF, MMI, DW);
|
||||
FuncInfo->set(Fn, *MF, *CurDAG, EnableFastISel);
|
||||
SDL->init(GFI, *AA);
|
||||
|
||||
for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I)
|
||||
|
|
Loading…
Reference in New Issue