diff --git a/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp b/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp index 5c9c13883fb3..4e8a20b6a66a 100644 --- a/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp +++ b/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp @@ -314,7 +314,7 @@ uint32_t GsymCreator::insertString(StringRef S, bool Copy) { void GsymCreator::addFunctionInfo(FunctionInfo &&FI) { std::lock_guard Guard(Mutex); Ranges.insert(FI.Range); - Funcs.emplace_back(FI); + Funcs.emplace_back(std::move(FI)); } void GsymCreator::forEachFunctionInfo(