[ELF] - replace error() with llvm_unreachable.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 26 Jul 2016 18:46:13 +0000 (18:46 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 26 Jul 2016 18:46:13 +0000 (18:46 +0000)
llvm-svn: 276790

lld/ELF/LinkerScript.cpp

index 904e94f..f3a3bbc 100644 (file)
@@ -775,7 +775,7 @@ static uint64_t getSymbolValue(StringRef S) {
       return B->getVA<ELF64BE>();
     break;
   default:
-    fatal("unsupported target");
+    llvm_unreachable("unsupported target");
   }
   error("symbol not found: " + S);
   return 0;