Skip to content

Commit 2163ae7

Browse files
committed
[LVStringPool] Remove incorrect std::move (NFCI)
"Value" is still used afterwards in the return value. In this case, this doesn't actually make a difference because a move for a primitive type is the same as a copy, so there is no actual misbehavior. Still drop the std::move to make the code less confusing.
1 parent cb4fca9 commit 2163ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/DebugInfo/LogicalView/Core/LVStringPool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class LVStringPool {
6060
if (isValidIndex(Index))
6161
return Index;
6262
size_t Value = Entries.size();
63-
ValueType *Entry = ValueType::create(Key, Allocator, std::move(Value));
63+
ValueType *Entry = ValueType::create(Key, Allocator, Value);
6464
StringTable.insert(Entry);
6565
Entries.push_back(Entry);
6666
return Value;

0 commit comments

Comments
 (0)