From: Feng Xue Date: Thu, 23 Sep 2021 01:14:33 +0000 (+0800) Subject: Fix value uninitialization in vn_reference_insert_pieces [PR102400] X-Git-Tag: basepoints/gcc-13~4438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29c92857039d0a105281be61c10c9e851aaeea4a;p=thirdparty%2Fgcc.git Fix value uninitialization in vn_reference_insert_pieces [PR102400] 2021-09-23 Feng Xue gcc/ PR tree-optimization/102400 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize result_vdef to zero value. --- diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index a901f51a025f..e8b1c39184d0 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -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);