diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-14 00:42:25 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-14 00:42:25 +0000 |
commit | fc767615bc67d3a7587b1fb2e0494c32c9dbd7a5 (patch) | |
tree | 97ef978358195ce02c6d93b6f2fe1e346deb5b2c /lib/Sema/SemaDecl.cpp | |
parent | edd1e2a362868a2fd28468265d3b5b801710b106 (diff) |
FunctionDecl::setParams() now uses the allocator associated with ASTContext to allocate the array of ParmVarDecl*'s.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 8d2e5590b9..c124c469ad 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -467,7 +467,7 @@ ScopedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid, Params.push_back(ParmVarDecl::Create(Context, New, SourceLocation(), 0, FT->getArgType(i), VarDecl::None, 0, 0)); - New->setParams(&Params[0], Params.size()); + New->setParams(Context, &Params[0], Params.size()); } @@ -1591,7 +1591,7 @@ Sema::ActOnDeclarator(Scope *S, Declarator &D, DeclTy *lastDecl, Params.push_back((ParmVarDecl *)FTI.ArgInfo[i].Param); } - NewFD->setParams(&Params[0], Params.size()); + NewFD->setParams(Context, &Params[0], Params.size()); } else if (R->getAsTypedefType()) { // When we're declaring a function with a typedef, as in the // following example, we'll need to synthesize (unnamed) @@ -1620,7 +1620,7 @@ Sema::ActOnDeclarator(Scope *S, Declarator &D, DeclTy *lastDecl, 0, 0)); } - NewFD->setParams(&Params[0], Params.size()); + NewFD->setParams(Context, &Params[0], Params.size()); } } |