From: Douglas Gregor Date: Wed, 5 Jan 2011 21:14:17 +0000 (+0000) Subject: hasInit() -> hasDefaultArg() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b1cf305c97382676c61ee89cc6d22fc5c26a8ae;p=clang hasInit() -> hasDefaultArg() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122905 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp index a256537068..46d8c1d3d4 100644 --- a/lib/Sema/SemaTemplateInstantiate.cpp +++ b/lib/Sema/SemaTemplateInstantiate.cpp @@ -1084,7 +1084,7 @@ static bool NeedsInstantiationAsFunctionType(TypeSourceInfo *T) { // TODO: currently we always rebuild expressions. When we // properly get lazier about this, we should use the same // logic to avoid rebuilding prototypes here. - if (P->hasInit()) + if (P->hasDefaultArg()) return true; }