[llvm] r190366 - Use a default value for the prologue's debug location.

Bill Wendling isanbard at gmail.com
Mon Sep 9 16:28:15 PDT 2013


Author: void
Date: Mon Sep  9 18:28:15 2013
New Revision: 190366

URL: http://llvm.org/viewvc/llvm-project?rev=190366&view=rev
Log:
Use a default value for the prologue's debug location.

Modified:
    llvm/trunk/lib/Target/X86/X86FrameLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=190366&r1=190365&r2=190366&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Mon Sep  9 18:28:15 2013
@@ -408,7 +408,7 @@ void X86FrameLowering::emitPrologue(Mach
   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





More information about the llvm-commits mailing list