[PATCH] D102485: Move FunctionInfo in addFunctionInfo rather than copying.

Simon Giesecke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 19 03:33:07 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4ea4d9c066b6: Move FunctionInfo in addFunctionInfo rather than copying. (authored by simon.giesecke).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102485/new/

https://reviews.llvm.org/D102485

Files:
  llvm/lib/DebugInfo/GSYM/GsymCreator.cpp


Index: llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
===================================================================
--- llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
+++ llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
@@ -314,7 +314,7 @@
 void GsymCreator::addFunctionInfo(FunctionInfo &&FI) {
   std::lock_guard<std::recursive_mutex> Guard(Mutex);
   Ranges.insert(FI.Range);
-  Funcs.emplace_back(FI);
+  Funcs.emplace_back(std::move(FI));
 }
 
 void GsymCreator::forEachFunctionInfo(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102485.346385.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210519/2db5efd3/attachment.bin>


More information about the llvm-commits mailing list