diff options
author | Devang Patel <dpatel@apple.com> | 2011-02-16 01:11:51 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-02-16 01:11:51 +0000 |
commit | 34753802931fddcf57bd62c5b83bdca1a23017d7 (patch) | |
tree | bbce2f4b15d6a452217f0c8f1a098633ac18c52b /lib/CodeGen/CGDecl.cpp | |
parent | 78bcd9139f4b35be75190446c95614120d9b4c09 (diff) |
Simplify test to check an aggregate argument that has non trivial constructor or destructor.
This patch rewrites r125142.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 4dd788b799..c31840a78e 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -927,8 +927,7 @@ void CodeGenFunction::EmitAutoVarDecl(const VarDecl &D, /// Emit an alloca (or GlobalValue depending on target) /// for the specified parameter and set up LocalDeclMap. -void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg, - bool IndirectArg) { +void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg) { // FIXME: Why isn't ImplicitParamDecl a ParmVarDecl? assert((isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D)) && "Invalid argument to EmitParmDecl"); @@ -957,6 +956,6 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg, // Emit debug info for param declaration. if (CGDebugInfo *DI = getDebugInfo()) { DI->setLocation(D.getLocation()); - DI->EmitDeclareOfArgVariable(&D, DeclPtr, Builder, IndirectArg); + DI->EmitDeclareOfArgVariable(&D, DeclPtr, Builder); } } |