Skip to content

Commit 143a2c3

Browse files
committed
Use SDL->getCurDebugLoc() instead of unknown loc for landing pads.
llvm-svn: 63594
1 parent fa50a23 commit 143a2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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, DebugLoc::getUnknownLoc(), II).addImm(LabelID);
746+
BuildMI(BB, SDL->getCurDebugLoc(), II).addImm(LabelID);
747747

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

0 commit comments

Comments
 (0)