File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2671,19 +2671,19 @@ recording::memento_of_get_type::get_size ()
2671
2671
break ;
2672
2672
case GCC_JIT_TYPE_FLOAT:
2673
2673
m = targetm.c .mode_for_floating_type (TI_FLOAT_TYPE);
2674
- size = GET_MODE_PRECISION (m). to_constant () ;
2674
+ size = GET_MODE_UNIT_SIZE (m) * BITS_PER_UNIT ;
2675
2675
break ;
2676
2676
#ifdef HAVE_BFmode
2677
2677
case GCC_JIT_TYPE_BFLOAT16:
2678
2678
return GET_MODE_UNIT_SIZE (BFmode);
2679
2679
#endif
2680
2680
case GCC_JIT_TYPE_DOUBLE:
2681
2681
m = targetm.c .mode_for_floating_type (TI_DOUBLE_TYPE);
2682
- size = GET_MODE_PRECISION (m). to_constant () ;
2682
+ size = GET_MODE_UNIT_SIZE (m) * BITS_PER_UNIT ;
2683
2683
break ;
2684
2684
case GCC_JIT_TYPE_LONG_DOUBLE:
2685
2685
m = targetm.c .mode_for_floating_type (TI_LONG_DOUBLE_TYPE);
2686
- size = GET_MODE_PRECISION (m). to_constant () ;
2686
+ size = GET_MODE_UNIT_SIZE (m) * BITS_PER_UNIT ;
2687
2687
break ;
2688
2688
case GCC_JIT_TYPE_FLOAT16:
2689
2689
size = 16 ;
You can’t perform that action at this time.
0 commit comments