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 | 99bda375a14e4c3b7d0adbc65293879899875fa6 (patch) | |
tree | 747ceecaefd44bb95aa2f5779772ee519f70c77e /clang/lib/Sema/Sema.cpp | |
parent | 06ba9f52460b06f83c9da505aa10fe01d9546945 (diff) | |
download | bcm5719-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/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 916f23c1caa..7e162029888 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -533,6 +533,8 @@ CastKind Sema::ScalarTypeToBooleanCastKind(QualType ScalarTy) { case Type::STK_Floating: return CK_FloatingToBoolean; case Type::STK_IntegralComplex: return CK_IntegralComplexToBoolean; case Type::STK_FloatingComplex: return CK_FloatingComplexToBoolean; + case Type::STK_FixedPoint: + llvm_unreachable("Unknown cast from FixedPoint to boolean"); } llvm_unreachable("unknown scalar type kind"); } |