mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +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:
@ -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)
|
||||
|
Reference in New Issue
Block a user