diff options
author | Richard Biener <rguenther@suse.de> | 2025-09-05 14:47:33 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2025-09-11 11:26:24 +0200 |
commit | 0887961f9e0e7ea6b417bfb02787cfdaea41dbe4 (patch) | |
tree | 32bb57805d963e059db764e48c1cb6be908b4387 /libjava | |
parent | ebd64a42512e53eb2f0b4169f2d68f3c6c5f23a8 (diff) | |
download | gcc-0887961f9e0e7ea6b417bfb02787cfdaea41dbe4.zip gcc-0887961f9e0e7ea6b417bfb02787cfdaea41dbe4.tar.gz gcc-0887961f9e0e7ea6b417bfb02787cfdaea41dbe4.tar.bz2 |
tree-optimization/121703 - UBSAN error with moving from uninit data
The PR reports
vectorizer.h:276:3: runtime error: load of value 32695, which is not a valid value for type 'internal_fn'
which I believe is from
slp_node->data = new vect_load_store_data (std::move (ls));
where 'ls' can be partly uninitialized (and that data will be not
used, but of course the move CTOR doesn't know this). The following
tries to fix that by using value-initialization of 'ls'.
PR tree-optimization/121703
* tree-vect-stmts.cc (vectorizable_store): Value-initialize ls.
(vectorizable_load): Likewise.
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions