diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 904e94f982ab..f3a3bbc69608 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -775,7 +775,7 @@ static uint64_t getSymbolValue(StringRef S) { return B->getVA(); break; default: - fatal("unsupported target"); + llvm_unreachable("unsupported target"); } error("symbol not found: " + S); return 0;