mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Add comment explaining gcc_jit_context_new_bitcast usage.
This commit is contained in:
parent
df5cb9b2a3
commit
219cbccb9a
1 changed files with 5 additions and 0 deletions
|
|
@ -1179,6 +1179,11 @@ emit_coerce (gcc_jit_type *new_type, gcc_jit_rvalue *obj)
|
|||
|
||||
gcc_jit_rvalue *tmp = obj;
|
||||
|
||||
/* `gcc_jit_context_new_bitcast` requires that the types being converted
|
||||
between have the same layout and as such, doesn't allow converting
|
||||
between an arbitrarily sized integer/boolean and a pointer. Casting it
|
||||
to a uintptr/void* is still necessary, to ensure that it can be bitcast
|
||||
into a (void *)/uintptr respectively. */
|
||||
if (old_is_ptr != new_is_ptr)
|
||||
{
|
||||
if (old_is_ptr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue