Use SDL->getCurDebugLoc() instead of unknown loc for landing pads.
authorBill Wendling <isanbard@gmail.com>
Tue, 3 Feb 2009 01:55:42 +0000 (01:55 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 3 Feb 2009 01:55:42 +0000 (01:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63594 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index e669a58f61a61964fef28f72c91feb3a32048f72..4b166f862d1fe474c2d07339695d9c5087fea180 100644 (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();