[llvm] [IR] Handle `.__uniq.` in `getGlobalIndentifier` for local linkage objects (PR #98163)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 10:52:16 PDT 2024
================
@@ -1142,7 +1142,7 @@ adjustInstrProfile(std::unique_ptr<WriterContext> &WC,
}
// This name should have a static linkage.
- size_t PostfixPos = NewName.find(FunctionSamples::UniqSuffix);
+ size_t PostfixPos = NewName.find(NameParticles::UniqSuffix);
----------------
ellishg wrote:
Can we use `StringRef::contains()` here too? Same with above, but I suspect `toString()` returns `std::string`.
https://github.com/llvm/llvm-project/pull/98163
More information about the llvm-commits
mailing list