We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b8ba5 commit 46ecf45Copy full SHA for 46ecf45
llvm/include/llvm/Support/JSON.h
@@ -318,7 +318,7 @@ class Value {
318
Value(std::string V) : Type(T_String) {
319
if (LLVM_UNLIKELY(!isUTF8(V))) {
320
assert(false && "Invalid UTF-8 in value used as JSON");
321
- V = fixUTF8(std::move(V));
+ V = fixUTF8(V);
322
}
323
create<std::string>(std::move(V));
324
@@ -591,7 +591,7 @@ class ObjectKey {
591
ObjectKey(std::string S) : Owned(new std::string(std::move(S))) {
592
if (LLVM_UNLIKELY(!isUTF8(*Owned))) {
593
594
- *Owned = fixUTF8(std::move(*Owned));
+ *Owned = fixUTF8(*Owned);
595
596
Data = *Owned;
597
0 commit comments