diff options
author | Devang Patel <dpatel@apple.com> | 2011-03-02 20:31:22 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-03-02 20:31:22 +0000 |
commit | bd6f7f9770728a425388c8d4d9b1aec4a5fac5e1 (patch) | |
tree | ce195c486b0aa2037d1e292df955871317110d8d /clang/lib/CodeGen/CGDecl.cpp | |
parent | bf577d6a867941e08460445faf6e1458041068fb (diff) | |
download | bcm5719-llvm-bd6f7f9770728a425388c8d4d9b1aec4a5fac5e1.tar.gz bcm5719-llvm-bd6f7f9770728a425388c8d4d9b1aec4a5fac5e1.zip |
revert r126858.
llvm-svn: 126874
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index ecc0a4c2d56..f4db01d2570 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -1000,8 +1000,7 @@ void CodeGenFunction::EmitAutoVarCleanups(const AutoVarEmission &emission) { /// 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, - unsigned ArgNo) { +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"); @@ -1047,6 +1046,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, ArgNo, Builder); + DI->EmitDeclareOfArgVariable(&D, DeclPtr, Builder); } } |