[lld] [lld][WebAssembly] Report undefined symbols by default -shared/-pie builds (PR #75242)
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 21 10:55:26 PST 2023
================
@@ -548,6 +582,7 @@ bool ObjFile::isExcludedByComdat(const InputChunk *chunk) const {
}
FunctionSymbol *ObjFile::getFunctionSymbol(uint32_t index) const {
+ assert(isa<FunctionSymbol>(symbols[index]));
----------------
dschuff wrote:
I think `cast` already has this same assertion built-in.
https://github.com/llvm/llvm-project/pull/75242
More information about the llvm-commits
mailing list