diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 1079a2fa99b3..904e94f982ab 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -774,6 +774,8 @@ static uint64_t getSymbolValue(StringRef S) { if (SymbolBody *B = Symtab::X->find(S)) return B->getVA(); break; + default: + fatal("unsupported target"); } error("symbol not found: " + S); return 0;