File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2666,19 +2666,19 @@ recording::memento_of_get_type::get_size ()
26662666 break ;
26672667 case GCC_JIT_TYPE_FLOAT:
26682668 m = targetm.c .mode_for_floating_type (TI_FLOAT_TYPE);
2669- size = GET_MODE_PRECISION (m). to_constant () ;
2669+ size = GET_MODE_UNIT_SIZE (m) * BITS_PER_UNIT ;
26702670 break ;
26712671#ifdef HAVE_BFmode
26722672 case GCC_JIT_TYPE_BFLOAT16:
26732673 return GET_MODE_UNIT_SIZE (BFmode);
26742674#endif
26752675 case GCC_JIT_TYPE_DOUBLE:
26762676 m = targetm.c .mode_for_floating_type (TI_DOUBLE_TYPE);
2677- size = GET_MODE_PRECISION (m). to_constant () ;
2677+ size = GET_MODE_UNIT_SIZE (m) * BITS_PER_UNIT ;
26782678 break ;
26792679 case GCC_JIT_TYPE_LONG_DOUBLE:
26802680 m = targetm.c .mode_for_floating_type (TI_LONG_DOUBLE_TYPE);
2681- size = GET_MODE_PRECISION (m). to_constant () ;
2681+ size = GET_MODE_UNIT_SIZE (m) * BITS_PER_UNIT ;
26822682 break ;
26832683 case GCC_JIT_TYPE_FLOAT16:
26842684 size = 16 ;
You can’t perform that action at this time.
0 commit comments