Fix MSVC bot: apparently visual studio does not like explicitly defaulted move ctor

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 261036
This commit is contained in:
Mehdi Amini 2016-02-17 00:11:59 +00:00
parent c28aee6a51
commit 08ea2c7537
1 changed files with 3 additions and 1 deletions

View File

@ -594,7 +594,9 @@ class MDString : public Metadata {
MDString() : Metadata(MDStringKind, Uniqued), Entry(nullptr) {}
public:
MDString(MDString &&R) = default;
// This is a "default" move ctor, MSVC does not support "= default" here
MDString(MDString &&R)
: Metadata(MDStringKind, Uniqued), Entry(std::move(R.Entry)) {}
static MDString *get(LLVMContext &Context, StringRef Str);
static MDString *get(LLVMContext &Context, const char *Str) {
return get(Context, Str ? StringRef(Str) : StringRef());