aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-11-23 00:42:43 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-11-23 00:42:43 +0000
commitca766b27d9aa90f57e0b71fa1fe69ddaf81dc91f (patch)
treef0e493e72b7cb8e8dea1a73c1cf7f8ffd59cd364
parentde9afd845b315dbbf88fe32b570b3487d3a11a37 (diff)
downloadllvm-ca766b27d9aa90f57e0b71fa1fe69ddaf81dc91f.zip
llvm-ca766b27d9aa90f57e0b71fa1fe69ddaf81dc91f.tar.gz
llvm-ca766b27d9aa90f57e0b71fa1fe69ddaf81dc91f.tar.bz2
Remove uninstantiable constructor from DeclTemplate.h
Patch by Kim Gräsman! Laszlo Nagy and me both ran into the same issue with SpecIterator from DeclTemplate.h causing an error: tools/clang/include/clang/AST/DeclTemplate.h:560:22: error: no matching constructor for initialization of 'SetIteratorType' (aka 'FoldingSetVectorIterator<clang::FunctionTemplateSpecializationInfo, typename SmallVector<FunctionTemplateSpecializationInfo *, 8>::iterator>') SpecIterator() : SetIter() {} (see e.g. http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-November/033642.html) The problem is the SpecIterator default constructor which needs a non-existent SetIter default constructor. SpecIterator's default constructor is evidently dead code as any call to it would fail with the above error. This patch removes it. Differential Revision: http://llvm-reviews.chandlerc.com/D2246 llvm-svn: 195526
-rw-r--r--clang/include/clang/AST/DeclTemplate.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h
index 4497197..8fb4957 100644
--- a/clang/include/clang/AST/DeclTemplate.h
+++ b/clang/include/clang/AST/DeclTemplate.h
@@ -564,7 +564,6 @@ protected:
SetIteratorType SetIter;
public:
- SpecIterator() : SetIter() {}
SpecIterator(SetIteratorType SetIter) : SetIter(SetIter) {}
DeclType *operator*() const {