]> granicus.if.org Git - clang/commitdiff
hasInit() -> hasDefaultArg()
authorDouglas Gregor <dgregor@apple.com>
Wed, 5 Jan 2011 21:14:17 +0000 (21:14 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 5 Jan 2011 21:14:17 +0000 (21:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122905 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplateInstantiate.cpp

index a256537068c524d25884a41e2561153cd412106e..46d8c1d3d46c31c4979e53a3b7777549f540ab01 100644 (file)
@@ -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;
   }