aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-01-14 00:42:25 +0000
committerTed Kremenek <kremenek@apple.com>2009-01-14 00:42:25 +0000
commitfc767615bc67d3a7587b1fb2e0494c32c9dbd7a5 (patch)
tree97ef978358195ce02c6d93b6f2fe1e346deb5b2c /lib/Sema/SemaDecl.cpp
parentedd1e2a362868a2fd28468265d3b5b801710b106 (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.cpp6
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());
}
}