OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d774f8
)
Fix MSVC bot: apparently visual studio does not like explicitly defaulted move ctor
author
Mehdi Amini
<mehdi.amini@apple.com>
Wed, 17 Feb 2016 00:11:59 +0000
(
00:11
+0000)
committer
Mehdi Amini
<mehdi.amini@apple.com>
Wed, 17 Feb 2016 00:11:59 +0000
(
00:11
+0000)
From: Mehdi Amini <mehdi.amini@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261036
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/IR/Metadata.h
patch
|
blob
|
history
diff --git
a/include/llvm/IR/Metadata.h
b/include/llvm/IR/Metadata.h
index
bb21d7a
..
a514b60
100644
(file)
--- a/
include/llvm/IR/Metadata.h
+++ b/
include/llvm/IR/Metadata.h
@@
-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());