================ @@ -4788,13 +4788,22 @@ void RewriteInstance::updateELFSymbolTable( if (!IsDynSym && shouldStrip(Symbol)) continue; + Expected<StringRef> SymbolName = Symbol.getName(StringSection); + assert(SymbolName && "cannot get symbol name"); ---------------- aaupov wrote:
Not really. Let me drop it. Yes, Expected will blow up upon null access, and the assertion message is not more insightful than SymbolName variable itself. https://github.com/llvm/llvm-project/pull/92713 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits