[llvm] r295799 - Fix -Wcovered-switch-default.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 21 17:01:46 PST 2017
Author: ruiu
Date: Tue Feb 21 19:01:45 2017
New Revision: 295799
URL: http://llvm.org/viewvc/llvm-project?rev=295799&view=rev
Log:
Fix -Wcovered-switch-default.
Modified:
llvm/trunk/lib/Object/ArchiveWriter.cpp
Modified: llvm/trunk/lib/Object/ArchiveWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ArchiveWriter.cpp?rev=295799&r1=295798&r2=295799&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ArchiveWriter.cpp (original)
+++ llvm/trunk/lib/Object/ArchiveWriter.cpp Tue Feb 21 19:01:45 2017
@@ -129,9 +129,7 @@ static bool isBSDLike(object::Archive::K
case object::Archive::K_BSD:
case object::Archive::K_DARWIN:
return true;
- case object::Archive::K_MIPS64:
- case object::Archive::K_DARWIN64:
- case object::Archive::K_COFF:
+ default:
llvm_unreachable("not supported for writting");
}
}
More information about the llvm-commits
mailing list