Work around MSVC 2013's inability to default move special members.

llvm-svn: 281382
This commit is contained in:
Richard Smith 2016-09-13 20:00:02 +00:00
parent 3e9037d419
commit 85edca95c6
1 changed files with 3 additions and 3 deletions

View File

@ -911,9 +911,9 @@ namespace {
struct DiagText {
struct Piece {
// This type and its derived classes are move-only.
Piece() = default;
Piece(Piece &&O) = default;
Piece &operator=(Piece &&O) = default;
Piece() {}
Piece(Piece &&O) {}
Piece &operator=(Piece &&O) { return *this; }
virtual void print(std::vector<std::string> &RST) = 0;
virtual ~Piece() {}