[C++11] Remove use of LLVM_HAS_RVALUE_REFERENCES from Clang. This macro
is now always 1, as we're requiring C++11 now! llvm-svn: 202584
This commit is contained in:
parent
667363b3e3
commit
c0b91adf84
|
@ -201,13 +201,11 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
PartialDiagnostic(PartialDiagnostic &&Other)
|
||||
: DiagID(Other.DiagID), DiagStorage(Other.DiagStorage),
|
||||
Allocator(Other.Allocator) {
|
||||
Other.DiagStorage = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
PartialDiagnostic(const PartialDiagnostic &Other, Storage *DiagStorage)
|
||||
: DiagID(Other.DiagID), DiagStorage(DiagStorage),
|
||||
|
@ -251,7 +249,6 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
#if LLVM_HAS_RVALUE_REFERENCES
|
||||
PartialDiagnostic &operator=(PartialDiagnostic &&Other) {
|
||||
freeStorage();
|
||||
|
||||
|
@ -262,7 +259,6 @@ public:
|
|||
Other.DiagStorage = 0;
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
~PartialDiagnostic() {
|
||||
freeStorage();
|
||||
|
|
Loading…
Reference in New Issue