1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Use SDL->getCurDebugLoc() instead of unknown loc for landing pads.

llvm-svn: 63594
This commit is contained in:
Bill Wendling 2009-02-03 01:55:42 +00:00
parent 78decbdb9d
commit 014973fd5d

View File

@ -743,7 +743,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
unsigned LabelID = MMI->addLandingPad(BB);
const TargetInstrDesc &II = TII.get(TargetInstrInfo::EH_LABEL);
BuildMI(BB, DebugLoc::getUnknownLoc(), II).addImm(LabelID);
BuildMI(BB, SDL->getCurDebugLoc(), II).addImm(LabelID);
// Mark exception register as live in.
unsigned Reg = TLI.getExceptionAddressRegister();