diff --git a/lld/wasm/InputFiles.cpp b/lld/wasm/InputFiles.cpp --- a/lld/wasm/InputFiles.cpp +++ b/lld/wasm/InputFiles.cpp @@ -212,7 +212,7 @@ // so this will not produce a valid range conflicting with ranges of actual // code. In other sections we return reloc.Addend. - if ((isa(sym) || isa(sym)) && !sym->isLive()) + if (!isa(sym) && !sym->isLive()) return tombstone ? tombstone : reloc.Addend; }