summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2018-10-23 17:55:35 +0000
committerLeonard Chan <leonardchan@google.com>2018-10-23 17:55:35 +0000
commit233643a4e02d8156fdfe98bf5808c25d31673c1a (patch)
treebc732485e392cacfd4571ccc8b4a07c6fa219b1a /lib/CodeGen/CGExprAgg.cpp
parent58e4f8f66ce6948565894eefa8ad2e8ee6002f29 (diff)
downloadclang-233643a4e02d8156fdfe98bf5808c25d31673c1a.tar.gz
[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
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--lib/CodeGen/CGExprAgg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp
index 7808c84c12..42481939fa 100644
--- a/lib/CodeGen/CGExprAgg.cpp
+++ b/lib/CodeGen/CGExprAgg.cpp
@@ -851,6 +851,7 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) {
case CK_AddressSpaceConversion:
case CK_IntToOCLSampler:
case CK_FixedPointCast:
+ case CK_FixedPointToBoolean:
llvm_unreachable("cast kind invalid for aggregate types");
}
}