OSDN Git Service

Use a default value for the prologue's debug location.
authorBill Wendling <isanbard@gmail.com>
Mon, 9 Sep 2013 23:28:15 +0000 (23:28 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 9 Sep 2013 23:28:15 +0000 (23:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190366 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FrameLowering.cpp

index adcd4f7..dd02c4e 100644 (file)
@@ -408,7 +408,7 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
   unsigned FramePtr = RegInfo->getFrameRegister(MF);
   unsigned StackPtr = RegInfo->getStackRegister();
   unsigned BasePtr = RegInfo->getBaseRegister();
-  DebugLoc DL;
+  DebugLoc DL = MBB.findDebugLoc(MBBI);
 
   // If we're forcing a stack realignment we can't rely on just the frame
   // info, we need to know the ABI stack alignment as well in case we