diff options
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 57a44e54d8..1dd782936f 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -432,7 +432,7 @@ unsigned FunctionDecl::getBuiltinID(ASTContext &Context) const { /// getNumParams - Return the number of parameters this function must have -/// based on its functiontype. This is the length of the PararmInfo array +/// based on its FunctionType. This is the length of the PararmInfo array /// after it has been created. unsigned FunctionDecl::getNumParams() const { const FunctionType *FT = getType()->getAsFunctionType(); @@ -445,8 +445,7 @@ unsigned FunctionDecl::getNumParams() const { void FunctionDecl::setParams(ASTContext& C, ParmVarDecl **NewParamInfo, unsigned NumParams) { assert(ParamInfo == 0 && "Already has param info!"); - assert(NumParams == getNumParams() && - "Parameter count mismatch!"); + assert(NumParams == getNumParams() && "Parameter count mismatch!"); // Zero params -> null pointer. if (NumParams) { |