Fix value uninitialization in vn_reference_insert_pieces [PR102400]
2021-09-23 Feng Xue <fxue@os.amperecomputing.com> gcc/ PR tree-optimization/102400 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize result_vdef to zero value.
This commit is contained in:
parent
f91b11eb88
commit
29c9285703
1 changed files with 1 additions and 0 deletions
|
@ -3811,6 +3811,7 @@ vn_reference_insert_pieces (tree vuse, alias_set_type set,
|
|||
if (result && TREE_CODE (result) == SSA_NAME)
|
||||
result = SSA_VAL (result);
|
||||
vr1->result = result;
|
||||
vr1->result_vdef = NULL_TREE;
|
||||
|
||||
slot = valid_info->references->find_slot_with_hash (vr1, vr1->hashcode,
|
||||
INSERT);
|
||||
|
|
Loading…
Add table
Reference in a new issue