From: Simon Pilgrim Date: Fri, 25 Jan 2019 11:36:51 +0000 (+0000) Subject: Fix "control reaches end of non-void function" warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=724aad8b52411b7ea2162ede86d35c4eae973d8d;p=clang Fix "control reaches end of non-void function" warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352192 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprObjC.cpp b/lib/AST/ExprObjC.cpp index 584aa8c1fb..e9f2d1a723 100644 --- a/lib/AST/ExprObjC.cpp +++ b/lib/AST/ExprObjC.cpp @@ -315,6 +315,7 @@ QualType ObjCMessageExpr::getCallReturnType(ASTContext &Ctx) const { case VK_RValue: return QT; } + llvm_unreachable("Unsupported ExprValueKind"); } SourceRange ObjCMessageExpr::getReceiverRange() const {