diff --git a/lld/MachO/SymbolTable.cpp b/lld/MachO/SymbolTable.cpp --- a/lld/MachO/SymbolTable.cpp +++ b/lld/MachO/SymbolTable.cpp @@ -134,7 +134,7 @@ // FIXME: Make every symbol (including absolute symbols) contain a // reference to their originating file, then add that file name to this // error message. - if (auto *defined = dyn_cast(s)) + if (isa(s)) error("found defined symbol with illegal name " + DSOHandle::name); } replaceSymbol(s, header);