diff options
| -rw-r--r-- | clang/include/clang/AST/DeclTemplate.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h index 2dcafa3c24d..2b8b24d37e7 100644 --- a/clang/include/clang/AST/DeclTemplate.h +++ b/clang/include/clang/AST/DeclTemplate.h @@ -892,12 +892,9 @@ public: /// This class is inheritedly privately by different kinds of template /// parameters and is not part of the Decl hierarchy. Just a facility. class TemplateParmPosition { -protected: - // FIXME: This should probably never be called, but it's here as - TemplateParmPosition() - : Depth(0), Position(0) - { /* llvm_unreachable("Cannot create positionless template parameter"); */ } + TemplateParmPosition() LLVM_DELETED_FUNCTION; +protected: TemplateParmPosition(unsigned D, unsigned P) : Depth(D), Position(P) { } |

