diff --git a/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp b/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp --- a/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp +++ b/llvm/lib/DebugInfo/GSYM/GsymCreator.cpp @@ -312,7 +312,7 @@ 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(