Move FunctionInfo in addFunctionInfo rather than copying.

Differential Revision: https://reviews.llvm.org/D102485
This commit is contained in:
Simon Giesecke 2021-05-14 11:06:39 +00:00
parent f29c4c6097
commit 4ea4d9c066
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ uint32_t GsymCreator::insertString(StringRef S, bool Copy) {
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(