r352192 - Fix "control reaches end of non-void function" warning. NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 25 03:36:51 PST 2019


Author: rksimon
Date: Fri Jan 25 03:36:51 2019
New Revision: 352192

URL: http://llvm.org/viewvc/llvm-project?rev=352192&view=rev
Log:
Fix "control reaches end of non-void function" warning. NFCI.

Modified:
    cfe/trunk/lib/AST/ExprObjC.cpp

Modified: cfe/trunk/lib/AST/ExprObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprObjC.cpp?rev=352192&r1=352191&r2=352192&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprObjC.cpp (original)
+++ cfe/trunk/lib/AST/ExprObjC.cpp Fri Jan 25 03:36:51 2019
@@ -315,6 +315,7 @@ QualType ObjCMessageExpr::getCallReturnT
   case VK_RValue:
     return QT;
   }
+  llvm_unreachable("Unsupported ExprValueKind");
 }
 
 SourceRange ObjCMessageExpr::getReceiverRange() const {




More information about the cfe-commits mailing list