diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2025-03-19 17:29:59 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-04-14 18:23:51 +0200 |
commit | 3eb76b8c62a2b3a9c6c7292e6692b48b3483fde0 (patch) | |
tree | 19d2d08fc3e99e9cbce1480132656fa4ae510976 /libjava/java | |
parent | d45a6502d1ec87d43f1a39f87cca58f1e28369c8 (diff) | |
download | gcc-3eb76b8c62a2b3a9c6c7292e6692b48b3483fde0.zip gcc-3eb76b8c62a2b3a9c6c7292e6692b48b3483fde0.tar.gz gcc-3eb76b8c62a2b3a9c6c7292e6692b48b3483fde0.tar.bz2 |
rust: Use FLOAT_TYPE_P instead of manual checking
This moves is_floating_point over to using FLOAT_TYPE_P instead
of manually checking. Note before it would return true for all
COMPLEX_TYPE but complex types' inner type could be integral.
Also fixes up the comment to be in more of the GNU style.
Bootstrapped and tested on x86_64-linux-gnu.
gcc/rust/ChangeLog:
* rust-gcc.cc (is_floating_point): Use FLOAT_TYPE_P
instead of manually checking the type.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'libjava/java')
0 files changed, 0 insertions, 0 deletions