[lld] r260417 - Silence MSVC warning about falling off the end of a function after a fully covered switch

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 11:28:14 PST 2016


Author: rnk
Date: Wed Feb 10 13:28:13 2016
New Revision: 260417

URL: http://llvm.org/viewvc/llvm-project?rev=260417&view=rev
Log:
Silence MSVC warning about falling off the end of a function after a fully covered switch

Modified:
    lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp

Modified: lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp?rev=260417&r1=260416&r2=260417&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp Wed Feb 10 13:28:13 2016
@@ -414,6 +414,7 @@ bool MachOLinkingContext::minOS(StringRe
     // This matches the ld64 behaviour
     return false;
   }
+  llvm_unreachable("invalid OS enum");
 }
 
 bool MachOLinkingContext::addEntryPointLoadCommand() const {




More information about the llvm-commits mailing list