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/CGExprComplex.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/CGExprComplex.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprComplex.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprComplex.cpp b/lib/CodeGen/CGExprComplex.cpp index fb176093a7..1d5438668b 100644 --- a/lib/CodeGen/CGExprComplex.cpp +++ b/lib/CodeGen/CGExprComplex.cpp @@ -509,6 +509,7 @@ ComplexPairTy ComplexExprEmitter::EmitCast(CastKind CK, Expr *Op, case CK_ZeroToOCLQueue: case CK_AddressSpaceConversion: case CK_IntToOCLSampler: + case CK_FixedPointCast: llvm_unreachable("invalid cast kind for complex value"); case CK_FloatingRealToComplex: |
