OSDN Git Service

Put the assignment back at the top of this method.
authorBill Wendling <isanbard@gmail.com>
Wed, 11 Mar 2009 00:03:50 +0000 (00:03 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 11 Mar 2009 00:03:50 +0000 (00:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66611 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfWriter.cpp

index 8dc7c4c..4120d9f 100644 (file)
@@ -3135,13 +3135,13 @@ public:
   /// BeginFunction - Gather pre-function debug information.  Assumes being
   /// emitted immediately after the function entry point.
   void BeginFunction(MachineFunction *MF) {
+    this->MF = MF;
+
     if (!ShouldEmitDwarfDebug()) return;
 
     if (TimePassesIsEnabled)
       DebugTimer->startTimer();
 
-    this->MF = MF;
-
     // Begin accumulating function debug information.
     MMI->BeginFunction(MF);