Skip to content

Commit f324c34

Browse files
committed
Use std::move when restoring the saved vector.
1 parent a3bfbb9 commit f324c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6759,7 +6759,7 @@ size_t TypeSystemClang::GetIndexOfChildMemberWithName(
67596759
if (field_type.GetIndexOfChildMemberWithName(
67606760
name, omit_empty_base_classes, child_indexes))
67616761
return child_indexes.size();
6762-
child_indexes = save_indices;
6762+
child_indexes = std::move(save_indices);
67636763
} else if (field_name == name) {
67646764
// We have to add on the number of base classes to this index!
67656765
child_indexes.push_back(

0 commit comments

Comments
 (0)