summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-07-16 18:50:45 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-07-16 18:50:45 +0000
commit5a0956e98d354837d7cb7cb1039ac672c7a11ee6 (patch)
tree471a842da18d6351d2f343ee7edc7d09cc57d27c /clang/lib/Sema
parent839a06e9d751654fc5e5b2e0050735dd8dff39e5 (diff)
downloadbcm5719-llvm-5a0956e98d354837d7cb7cb1039ac672c7a11ee6.tar.gz
bcm5719-llvm-5a0956e98d354837d7cb7cb1039ac672c7a11ee6.zip
Fix rejects-valid: explicit specialization of redeclared deleted function template.
Review by Richard Smith. llvm-svn: 160306
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiateDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
index 0d3e8a0ba8e..a2efa597c22 100644
--- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -2423,7 +2423,7 @@ void Sema::InstantiateExceptionSpec(SourceLocation PointOfInstantiation,
bool
TemplateDeclInstantiator::InitFunctionInstantiation(FunctionDecl *New,
FunctionDecl *Tmpl) {
- if (Tmpl->isDeletedAsWritten())
+ if (Tmpl->isDeleted())
New->setDeletedAsWritten();
// If we are performing substituting explicitly-specified template arguments
OpenPOWER on IntegriCloud