From f133ccbd8dc48f9f87a88aa3c27b41eeca71cb00 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 22 Feb 2017 19:42:14 +0000 Subject: Move llvm_unreachable out of switch. This should make gcc happy and still produce a clang warning if we add another value to the enum. llvm-svn: 295865 --- llvm/lib/Object/ArchiveWriter.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Object/ArchiveWriter.cpp') diff --git a/llvm/lib/Object/ArchiveWriter.cpp b/llvm/lib/Object/ArchiveWriter.cpp index 11cd72fa69d..83fbf2f5854 100644 --- a/llvm/lib/Object/ArchiveWriter.cpp +++ b/llvm/lib/Object/ArchiveWriter.cpp @@ -129,9 +129,12 @@ static bool isBSDLike(object::Archive::Kind Kind) { case object::Archive::K_BSD: case object::Archive::K_DARWIN: return true; - default: - llvm_unreachable("not supported for writting"); + case object::Archive::K_MIPS64: + case object::Archive::K_DARWIN64: + case object::Archive::K_COFF: + break; } + llvm_unreachable("not supported for writting"); } static void print32(raw_ostream &Out, object::Archive::Kind Kind, -- cgit v1.2.3