[llvm] r221943 - Silence MSVC warning on missing return after fully covered switch

Reid Kleckner reid at kleckner.net
Thu Nov 13 15:07:22 PST 2014


Author: rnk
Date: Thu Nov 13 17:07:22 2014
New Revision: 221943

URL: http://llvm.org/viewvc/llvm-project?rev=221943&view=rev
Log:
Silence MSVC warning on missing return after fully covered switch

Modified:
    llvm/trunk/lib/Bitcode/Reader/BitstreamReader.cpp

Modified: llvm/trunk/lib/Bitcode/Reader/BitstreamReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitstreamReader.cpp?rev=221943&r1=221942&r2=221943&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitstreamReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitstreamReader.cpp Thu Nov 13 17:07:22 2014
@@ -66,6 +66,7 @@ static uint64_t readAbbreviatedField(Bit
   case BitCodeAbbrevOp::Char6:
     return BitCodeAbbrevOp::DecodeChar6(Cursor.Read(6));
   }
+  llvm_unreachable("invalid abbreviation encoding");
 }
 
 static void skipAbbreviatedField(BitstreamCursor &Cursor,





More information about the llvm-commits mailing list