Skip to content

Commit 2d1fe02

Browse files
committed
save
1 parent 37b4d66 commit 2d1fe02

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/tvm/ffi/extra/structural_map.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class StructuralMapperObj : public Object {
222222
reflection::type_attr::kStructuralMap);
223223
}
224224
if (type_index < TypeIndex::kTVMFFIStaticObjectBegin) {
225-
return std::move(value);
225+
return value;
226226
}
227227
return details::MapReflectedFieldsExpected(this, std::move(value));
228228
}
@@ -273,7 +273,7 @@ class StructuralMapperObj : public Object {
273273
reflection::type_attr::kStructuralInplaceMutate);
274274
}
275275
if (type_index < TypeIndex::kTVMFFIStaticObjectBegin) {
276-
return std::move(value);
276+
return value;
277277
}
278278
return details::InplaceMutateReflectedFieldsExpected(this, std::move(value));
279279
}
@@ -548,7 +548,7 @@ TVM_FFI_INLINE static Expected<Any> TransformReflectedFieldsExpected(Any value,
548548
return result;
549549
}
550550
if (copy_on_write && !field_changed) {
551-
return std::move(value);
551+
return value;
552552
}
553553
return result;
554554
}

0 commit comments

Comments
 (0)