Marked the default constructor as an LLVM_DELETED_FUNCTION.

llvm-svn: 198435
This commit is contained in:
Aaron Ballman 2014-01-03 18:51:47 +00:00
parent 03ed4cf0a4
commit 1d17bde708
1 changed files with 2 additions and 5 deletions

View 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)
{ }