diff options
| author | Leonard Chan <leonardchan@google.com> | 2018-10-15 16:07:02 +0000 |
|---|---|---|
| committer | Leonard Chan <leonardchan@google.com> | 2018-10-15 16:07:02 +0000 |
| commit | ed7f88d2aba4bb4d18161b8304d658681adf7951 (patch) | |
| tree | b2e87a7e2529664916fa4f35c051dac0f5bda6fb /lib/CodeGen/CGExprAgg.cpp | |
| parent | 6451fb59532853824acbc78f98f1aa81e30468d1 (diff) | |
| download | clang-ed7f88d2aba4bb4d18161b8304d658681adf7951.tar.gz | |
[Fixed Point Arithmetic] FixedPointCast
This patch is a part of https://reviews.llvm.org/D48456 in an attempt to
split them up. This contains the code for casting between fixed point types
and other fixed point types.
The method for converting between fixed point types is based off the convert()
method in APFixedPoint.
Differential Revision: https://reviews.llvm.org/D50616
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 6264110286..9e809872ce 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -851,6 +851,7 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) { case CK_ZeroToOCLQueue: case CK_AddressSpaceConversion: case CK_IntToOCLSampler: + case CK_FixedPointCast: llvm_unreachable("cast kind invalid for aggregate types"); } } |
