Index: AST/Decl.cpp =================================================================== --- AST/Decl.cpp (revision 44636) +++ AST/Decl.cpp (working copy) @@ -242,8 +242,8 @@ } unsigned FunctionDecl::getNumParams() const { - if (isa(getType())) return 0; - return cast(getType())->getNumArgs(); + if (isa(getCanonicalType())) return 0; + return cast(getCanonicalType())->getNumArgs(); } void FunctionDecl::setParams(ParmVarDecl **NewParamInfo, unsigned NumParams) {