Skip to content

Commit eb68b91

Browse files
authored
[NFC][LLVM] Apply std::move to object being pushed back in findSymbolCommon (#135290)
Static analysis found that we could move LineInfo into the Result vector instead of just copying it.
1 parent 6e7fe85 commit eb68b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/DebugInfo/Symbolize/Symbolize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ LLVMSymbolizer::findSymbolCommon(const T &ModuleSpecifier, StringRef Symbol,
257257
if (LineInfo.FileName != DILineInfo::BadString) {
258258
if (Opts.Demangle)
259259
LineInfo.FunctionName = DemangleName(LineInfo.FunctionName, Info);
260-
Result.push_back(LineInfo);
260+
Result.push_back(std::move(LineInfo));
261261
}
262262
}
263263

0 commit comments

Comments
 (0)