Skip to content

Commit fa50a23

Browse files
committed
Explicitly pass in the "unknown" debug ___location. This is probably not
correct. We need more infrastructure before we can get the DebugLoc info for these instructions. llvm-svn: 63593
1 parent 7aa0c17 commit fa50a23

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ void FunctionLoweringInfo::set(Function &fn, MachineFunction &mf,
333333
unsigned NumRegisters = TLI.getNumRegisters(VT);
334334
const TargetInstrInfo *TII = MF->getTarget().getInstrInfo();
335335
for (unsigned i = 0; i != NumRegisters; ++i)
336-
BuildMI(MBB, TII->get(TargetInstrInfo::PHI), PHIReg+i);
336+
BuildMI(MBB, DebugLoc::getUnknownLoc(),
337+
TII->get(TargetInstrInfo::PHI), PHIReg + i);
337338
PHIReg += NumRegisters;
338339
}
339340
}

llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
743743
unsigned LabelID = MMI->addLandingPad(BB);
744744

745745
const TargetInstrDesc &II = TII.get(TargetInstrInfo::EH_LABEL);
746-
BuildMI(BB, II).addImm(LabelID);
746+
BuildMI(BB, DebugLoc::getUnknownLoc(), II).addImm(LabelID);
747747

748748
// Mark exception register as live in.
749749
unsigned Reg = TLI.getExceptionAddressRegister();

0 commit comments

Comments
 (0)