]> granicus.if.org Git - clang/commit
[Fixed Point Arithmetic] Fixed Point to Boolean Cast
authorLeonard Chan <leonardchan@google.com>
Tue, 23 Oct 2018 17:55:35 +0000 (17:55 +0000)
committerLeonard Chan <leonardchan@google.com>
Tue, 23 Oct 2018 17:55:35 +0000 (17:55 +0000)
commit233643a4e02d8156fdfe98bf5808c25d31673c1a
treebc732485e392cacfd4571ccc8b4a07c6fa219b1a
parent58e4f8f66ce6948565894eefa8ad2e8ee6002f29
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345063 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/clang/AST/OperationKinds.def
lib/AST/Expr.cpp
lib/AST/ExprConstant.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprComplex.cpp
lib/CodeGen/CGExprConstant.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Edit/RewriteObjCFoundationAPI.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaExpr.cpp
lib/StaticAnalyzer/Core/ExprEngineC.cpp
test/Frontend/fixed_point_to_bool.c [new file with mode: 0644]
test/Frontend/fixed_point_unknown_conversions.c