summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-05 21:14:17 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-05 21:14:17 +0000
commit9cc27822771b827447d96ff02e788d87de858640 (patch)
treec8545266f554930f7eb821f7720f21b6ebfc6299 /clang/lib/Sema/SemaTemplateInstantiate.cpp
parent3c6bd2ad386590ffcaa65e49a36e7976be82062d (diff)
downloadbcm5719-llvm-9cc27822771b827447d96ff02e788d87de858640.tar.gz
bcm5719-llvm-9cc27822771b827447d96ff02e788d87de858640.zip
hasInit() -> hasDefaultArg()
llvm-svn: 122905
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index a256537068c..46d8c1d3d46 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud