summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit3028a43f574a4cddecf44fb68952cee6ef9cc597 (patch)
tree60e9d3e0816159bc073a437979a9c7c579a1fa9d /clang/lib
parent96a5b87ae21c9692432863ca574ecbd0fb204c7f (diff)
downloadbcm5719-llvm-3028a43f574a4cddecf44fb68952cee6ef9cc597.tar.gz
bcm5719-llvm-3028a43f574a4cddecf44fb68952cee6ef9cc597.zip
Revert 83567.
llvm-svn: 83676
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index cc8f5471912..73bc0a04a0c 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/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);
+ }
}
OpenPOWER on IntegriCloud