]> granicus.if.org Git - clang/commitdiff
Marked the default constructor as an LLVM_DELETED_FUNCTION.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 3 Jan 2014 18:51:47 +0000 (18:51 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 3 Jan 2014 18:51:47 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198435 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclTemplate.h

index 2dcafa3c24d01fcbf5f4543945bc305a5104c27e..2b8b24d37e7a3ab76512b4d4fd348df5b508235f 100644 (file)
@@ -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)
   { }