[cfe-commits] r83676 - /cfe/trunk/lib/CodeGen/CGDecl.cpp

Devang Patel dpatel at apple.com
Fri Oct 9 15:06:15 PDT 2009


Author: dpatel
Date: Fri Oct  9 17:06:15 2009
New Revision: 83676

URL: http://llvm.org/viewvc/llvm-project?rev=83676&view=rev
Log:
Revert 83567.

Modified:
    cfe/trunk/lib/CodeGen/CGDecl.cpp

Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=83676&r1=83675&r2=83676&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Fri Oct  9 17:06:15 2009
@@ -550,11 +550,6 @@
          "Invalid argument to EmitParmDecl");
   QualType Ty = D.getType();
 
-  if (CGDebugInfo *DI = getDebugInfo()) {
-    DI->setLocation(D.getLocation());
-    DI->EmitStopPoint(CurFn, Builder);
-  }
-
   llvm::Value *DeclPtr;
   if (!Ty->isConstantSizeType()) {
     // Variable sized values always are passed by-reference.
@@ -583,7 +578,9 @@
   DMEntry = DeclPtr;
 
   // Emit debug info for param declaration.
-  if (CGDebugInfo *DI = getDebugInfo())
+  if (CGDebugInfo *DI = getDebugInfo()) {
+    DI->setLocation(D.getLocation());
     DI->EmitDeclareOfArgVariable(&D, DeclPtr, Builder);
+  }
 }
 





More information about the cfe-commits mailing list