[lld] r345885 - Use llvm_unreachable for unreachable code.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 1 13:08:30 PDT 2018
Author: ruiu
Date: Thu Nov 1 13:08:29 2018
New Revision: 345885
URL: http://llvm.org/viewvc/llvm-project?rev=345885&view=rev
Log:
Use llvm_unreachable for unreachable code.
Modified:
lld/trunk/ELF/Target.cpp
Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=345885&r1=345884&r2=345885&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Thu Nov 1 13:08:29 2018
@@ -73,7 +73,7 @@ TargetInfo *elf::getTarget() {
case ELF64BEKind:
return getMipsTargetInfo<ELF64BE>();
default:
- fatal("unsupported MIPS target");
+ llvm_unreachable("unsupported MIPS target");
}
case EM_PPC:
return getPPCTargetInfo();
@@ -88,7 +88,7 @@ TargetInfo *elf::getTarget() {
return getX32TargetInfo();
return getX86_64TargetInfo();
}
- fatal("unknown target machine");
+ llvm_unreachable("unknown target machine");
}
template <class ELFT> static ErrorPlace getErrPlace(const uint8_t *Loc) {
More information about the llvm-commits
mailing list