]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/121320 - UBSAN error in ao_ref_init_from_vn_reference
authorRichard Biener <rguenther@suse.de>
Thu, 31 Jul 2025 11:06:36 +0000 (13:06 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 31 Jul 2025 12:12:50 +0000 (14:12 +0200)
commitff6f7d8e005ae94ffd55f1dba727e28531c3daf3
tree87a181282d9466e5f2b665deb6360493abd90617
parent0be8ffbc854410b65d45a72e843dc18b13fc7b0f
tree-optimization/121320 - UBSAN error in ao_ref_init_from_vn_reference

The multiplication by BITS_PER_UNIT should be done in poly_offset_int.

PR tree-optimization/121320
* tree-ssa-sccvn.cc (ao_ref_init_from_vn_reference): Convert
op->off to poly_offset_int before multiplying by
BITS_PER_UNIT.
gcc/tree-ssa-sccvn.cc