summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2018-10-15 16:07:02 +0000
committerLeonard Chan <leonardchan@google.com>2018-10-15 16:07:02 +0000
commit99bda375a14e4c3b7d0adbc65293879899875fa6 (patch)
tree747ceecaefd44bb95aa2f5779772ee519f70c77e /clang/lib/CodeGen/CGExprComplex.cpp
parent06ba9f52460b06f83c9da505aa10fe01d9546945 (diff)
downloadbcm5719-llvm-99bda375a14e4c3b7d0adbc65293879899875fa6.tar.gz
bcm5719-llvm-99bda375a14e4c3b7d0adbc65293879899875fa6.zip
[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 llvm-svn: 344530
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index fb176093a74..1d5438668bb 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/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:
OpenPOWER on IntegriCloud