From: Aaron Ballman Date: Fri, 24 Jul 2015 12:47:27 +0000 (+0000) Subject: Silence a "not all control paths return a value" warning from MSVC. Should also silen... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26440abcdd6d560042419c6cd7d3af92048081a3;p=clang Silence a "not all control paths return a value" warning from MSVC. Should also silence a -Wreturn-type warning. NFC intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243109 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index 904a7d5d44..88337b8ff3 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -187,8 +187,9 @@ static NSAPI::NSClassIdKindKind ClassKindFromLiteralKind( // between LK_None/LK_Block and NSClassIdKindKind case Sema::LK_Block: case Sema::LK_None: - llvm_unreachable("LiteralKind can't be converted into a ClassKind"); + break; } + llvm_unreachable("LiteralKind can't be converted into a ClassKind"); } /// \brief Validates ObjCInterfaceDecl availability.