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 8dc7c4c47907c7c556ac97f97287ccfddbd32506..4120d9f917105721e3490c31557a796218456ff1 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);