summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-09-13 20:00:02 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-09-13 20:00:02 +0000
commit85edca95c67db6f820d8f15ffb27b04d3eb1a4b1 (patch)
tree8caf7a682c4eb5480a564d23d307cb6518761621
parent3e9037d41990041bb1f08f4e24d3ae104deb78be (diff)
downloadbcm5719-llvm-85edca95c67db6f820d8f15ffb27b04d3eb1a4b1.tar.gz
bcm5719-llvm-85edca95c67db6f820d8f15ffb27b04d3eb1a4b1.zip
Work around MSVC 2013's inability to default move special members.
llvm-svn: 281382
-rw-r--r--clang/utils/TableGen/ClangDiagnosticsEmitter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
index d6881ae3074..00769a45571 100644
--- a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -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() {}
OpenPOWER on IntegriCloud