[lld] r246811 - Avoid gcc warning.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 3 15:25:11 PDT 2015


Author: rafael
Date: Thu Sep  3 17:25:11 2015
New Revision: 246811

URL: http://llvm.org/viewvc/llvm-project?rev=246811&view=rev
Log:
Avoid gcc warning.

Modified:
    lld/trunk/ELF/InputFiles.cpp

Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=246811&r1=246810&r2=246811&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Thu Sep  3 17:25:11 2015
@@ -38,6 +38,7 @@ static uint16_t getEMachine(const ELFFil
   case ELF64LEKind:
     return getEMachine<ELF64LE>(B);
   }
+  llvm_unreachable("Invalid kind");
 }
 
 bool ELFFileBase::isCompatibleWith(const ELFFileBase &Other) const {




More information about the llvm-commits mailing list