r198435 - Marked the default constructor as an LLVM_DELETED_FUNCTION.

Aaron Ballman aaron at aaronballman.com
Fri Jan 3 10:51:47 PST 2014


Author: aaronballman
Date: Fri Jan  3 12:51:47 2014
New Revision: 198435

URL: http://llvm.org/viewvc/llvm-project?rev=198435&view=rev
Log:
Marked the default constructor as an LLVM_DELETED_FUNCTION.

Modified:
    cfe/trunk/include/clang/AST/DeclTemplate.h

Modified: cfe/trunk/include/clang/AST/DeclTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclTemplate.h?rev=198435&r1=198434&r2=198435&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclTemplate.h (original)
+++ cfe/trunk/include/clang/AST/DeclTemplate.h Fri Jan  3 12:51:47 2014
@@ -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)
   { }





More information about the cfe-commits mailing list