[llvm-commits] [llvm] r74625 - /llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp

Devang Patel dpatel at apple.com
Wed Jul 1 11:51:09 PDT 2009


Author: dpatel
Date: Wed Jul  1 13:51:07 2009
New Revision: 74625

URL: http://llvm.org/viewvc/llvm-project?rev=74625&view=rev
Log:
llvm.dbg.declare is always used for local variable's debug info.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=74625&r1=74624&r2=74625&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp Wed Jul  1 13:51:07 2009
@@ -442,10 +442,7 @@
       MachineInstr *DeclareMI 
         = BuildMI(MBB, DL, II).addFrameIndex(FI).addGlobalAddress(GV);
       DIVariable DV(cast<GlobalVariable>(GV));
-      if (!DV.isNull()) {
-        // This is a local variable
-        DW->RecordVariableScope(DV, DeclareMI);
-      }
+      DW->RecordVariableScope(DV, DeclareMI);
     }
     return true;
   }





More information about the llvm-commits mailing list