From b4ba467da89353fda84a08175971859b1e52fde4 Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Tue, 23 Oct 2018 17:55:35 +0000 Subject: [Fixed Point Arithmetic] Fixed Point to Boolean Cast This patch is a part of https://reviews.llvm.org/D48456 in an attempt to split the casting logic up into smaller patches. This contains the code for casting from fixed point types to boolean types. Differential Revision: https://reviews.llvm.org/D53308 llvm-svn: 345063 --- clang/lib/Edit/RewriteObjCFoundationAPI.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Edit/RewriteObjCFoundationAPI.cpp') diff --git a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp index 5a7982a21d7..7c9ab170093 100644 --- a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp +++ b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp @@ -1086,6 +1086,7 @@ static bool rewriteToNumericBoxedExpression(const ObjCMessageExpr *Msg, llvm_unreachable("OpenCL-specific cast in Objective-C?"); case CK_FixedPointCast: + case CK_FixedPointToBoolean: llvm_unreachable("Fixed point types are disabled for Objective-C"); } } -- cgit v1.2.3