]> 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>
Fri, 1 Aug 2025 07:20:03 +0000 (09:20 +0200)
commit3ef3de7a7329d5c76bed31e8b49a2a661c45f72f
tree135b729cce1af8f6c8a2874ce2d1ab4cd625c580
parent8fb94bb3d6528e9a4c608983f1a071fb0a2bed47
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.

(cherry picked from commit ff6f7d8e005ae94ffd55f1dba727e28531c3daf3)
gcc/tree-ssa-sccvn.cc