mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
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
This commit is contained in:
parent
1a3257bbf5
commit
b51d40cf40
@ -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…
x
Reference in New Issue
Block a user