[llvm] [ThinLTO] Use StringRef instead of std::string (PR #97963)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 7 10:49:04 PDT 2024
================
@@ -4133,7 +4133,7 @@ static void writeTypeIdSummaryRecord(SmallVector<uint64_t, 64> &NameVals,
static void writeTypeIdCompatibleVtableSummaryRecord(
SmallVector<uint64_t, 64> &NameVals, StringTableBuilder &StrtabBuilder,
- const std::string &Id, const TypeIdCompatibleVtableInfo &Summary,
+ const StringRef Id, const TypeIdCompatibleVtableInfo &Summary,
----------------
MaskRay wrote:
remove `const`
https://github.com/llvm/llvm-project/pull/97963
More information about the llvm-commits
mailing list