[llvm-branch-commits] [llvm] [BOLT] Ignore hot markers as function references in updateELFSymbolTable (PR #92713)
Davide Italiano via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun May 19 19:46:15 PDT 2024
================
@@ -4788,13 +4788,22 @@ void RewriteInstance::updateELFSymbolTable(
if (!IsDynSym && shouldStrip(Symbol))
continue;
+ Expected<StringRef> SymbolName = Symbol.getName(StringSection);
+ assert(SymbolName && "cannot get symbol name");
----------------
dcci wrote:
is this assert needed? if Expected returns null, it will blow up, no?
https://github.com/llvm/llvm-project/pull/92713
More information about the llvm-branch-commits
mailing list