diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2025-03-19 17:29:59 -0700 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2025-04-10 15:53:50 +0000 |
commit | 2a46a5a37a7364951e0578605e2f763ba0a2cde4 (patch) | |
tree | f2e8616bfa5b6a6a543385d97eb5bf918a19f9f3 /gcc/rust/hir | |
parent | d61c21976610a13fa255093dff10f9aa6e4b3040 (diff) | |
download | gcc-2a46a5a37a7364951e0578605e2f763ba0a2cde4.zip gcc-2a46a5a37a7364951e0578605e2f763ba0a2cde4.tar.gz gcc-2a46a5a37a7364951e0578605e2f763ba0a2cde4.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 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions