Note how all 3 functions are assigned the same name and linkage name. Afaik, assigning the same linkageName is invalid.
Assigning the same name is valid, but surprising. We should probably distinguish the functions by assigning different names.
Furthermore, all 3 routines are defined to have type !116, which is defined as
which indicates that all 3 functions (also the resume and destroy functions) take no parameters and return an int_generator. However, this is only correct for the ramp function.
It seems that the
In https://godbolt.org/z/qM1Eqjhrh, we see
and the corresponding debug info
Note how all 3 functions are assigned the same name and linkage name. Afaik, assigning the same
linkageName
is invalid. Assigning the samename
is valid, but surprising. We should probably distinguish the functions by assigning different names.Furthermore, all 3 routines are defined to have type
!116
, which is defined aswhich indicates that all 3 functions (also the resume and destroy functions) take no parameters and return an
int_generator
. However, this is only correct for the ramp function.