diff options
author | Mike Stump <mrs@apple.com> | 2009-08-04 21:02:39 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-08-04 21:02:39 +0000 |
commit | ac5fc7c6bcb494b60fee7ce615ac931c5db6135e (patch) | |
tree | bc35a259aa268b722facf196fc38cf19480ae517 /lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 06758d0ea712795fe0ff5c2dee4b9a162569dfef (diff) |
Canonicalize else.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiateDecl.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp index 6506cde2af..abe1fffe88 100644 --- a/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -612,11 +612,10 @@ TemplateDeclInstantiator::InstantiateFunctionType(FunctionDecl *D, if (PInst->getType()->isVoidType()) { SemaRef.Diag(PInst->getLocation(), diag::err_param_with_void_type); PInst->setInvalidDecl(); - } - else if (SemaRef.RequireNonAbstractType(PInst->getLocation(), - PInst->getType(), - diag::err_abstract_type_in_decl, - Sema::AbstractParamType)) + } else if (SemaRef.RequireNonAbstractType(PInst->getLocation(), + PInst->getType(), + diag::err_abstract_type_in_decl, + Sema::AbstractParamType)) PInst->setInvalidDecl(); Params.push_back(PInst); |