summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-03-06 00:28:43 +0000
committerLeonard Chan <leonardchan@google.com>2019-03-06 00:28:43 +0000
commitad9a67e1f7dae24e41d70541d09019900ec029cd (patch)
tree271ce5fb594bc6fec7d1fb627b392c9a65b16edf /lib/CodeGen/CGExprAgg.cpp
parentff11046ce9683b065684341f6ac59b9ea12aee84 (diff)
downloadclang-ad9a67e1f7dae24e41d70541d09019900ec029cd.tar.gz
[Fixed Point Arithmetic] Fixed Point and Integer Conversions
This patch includes the necessary code for converting between a fixed point type and integer. This also includes constant expression evaluation for conversions with these types. Differential Revision: https://reviews.llvm.org/D56900 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--lib/CodeGen/CGExprAgg.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp
index d9d8264c18..161d6ed34e 100644
--- a/lib/CodeGen/CGExprAgg.cpp
+++ b/lib/CodeGen/CGExprAgg.cpp
@@ -853,6 +853,8 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) {
case CK_IntToOCLSampler:
case CK_FixedPointCast:
case CK_FixedPointToBoolean:
+ case CK_FixedPointToIntegral:
+ case CK_IntegralToFixedPoint:
llvm_unreachable("cast kind invalid for aggregate types");
}
}