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: releases/gcc-11.3.0~863 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=210c3901749a245dc45f04da3dac70ef126e6762;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 a50bd6e39781..07a52887b6b4 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -3797,6 +3797,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);