aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-09 22:06:15 +0000
committerDevang Patel <dpatel@apple.com>2009-10-09 22:06:15 +0000
commitfee53aa127b3d6af507af7e3c9f8fd3a975333fb (patch)
tree87d7c5e14e1d2f5babd89f54e34348fdd9c2ce5d /lib/CodeGen/CGDecl.cpp
parentf36e02d4aff98bf2e52e342e0038d4172fbb5e64 (diff)
Revert 83567.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r--lib/CodeGen/CGDecl.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp
index cc8f547191..73bc0a04a0 100644
--- a/lib/CodeGen/CGDecl.cpp
+++ b/lib/CodeGen/CGDecl.cpp
@@ -550,11 +550,6 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg) {
"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 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg) {
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);
+ }
}