]> git.ipfire.org Git - thirdparty/gcc.git/commit
jit: don't use &vect[0] in libgccjit++.h [PR121516]
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 13 Aug 2025 01:46:41 +0000 (21:46 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 13 Aug 2025 01:46:41 +0000 (21:46 -0400)
commitd6d1fa0039e68e52c3d787d90b545842cbb24d32
treeddfa1d40feecbc307c49d7772e0b60fb8e20c083
parent9e30860f8c77309c9f74742fe8866d2ca0d0fe7a
jit: don't use &vect[0] in libgccjit++.h [PR121516]

gcc/jit/ChangeLog:
PR jit/121516
* libgccjit++.h (context::new_struct_type): Replace use of
&fields[0] with fields.data ().
(context::new_function): Likewise for params.
(context::new_rvalue): Likewise for elements.
(context::new_call): Likewise for args.
(block::end_with_switch): Likewise for cases.
(block::end_with_extended_asm_goto): Likewise for goto_blocks.
(context::new_struct_ctor): Likewise for fields and values.
(context::new_array_ctor): Likewise for values.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/jit/libgccjit++.h