aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-04-17 09:19:32 +0200
committerRichard Biener <rguenther@suse.de>2020-04-17 10:38:45 +0200
commita64468a3034dd8e2d0794a5be84b8da544ffe2c3 (patch)
treeff3843bd25bd6f1d0aa8dd77132bf5f7bc8ca8e0 /gcc/tree-ssa-sccvn.c
parentc41884a09206be0e21cad7eea71b9754daa969d4 (diff)
downloadgcc-a64468a3034dd8e2d0794a5be84b8da544ffe2c3.zip
gcc-a64468a3034dd8e2d0794a5be84b8da544ffe2c3.tar.gz
gcc-a64468a3034dd8e2d0794a5be84b8da544ffe2c3.tar.bz2
fix PVS studio reported bugs
2020-04-17 Richard Biener <rguenther@suse.de> PR other/94629 * cgraphclones.c (cgraph_node::create_clone): Remove duplicate initialization. * dwarf2out.c (dw_val_equal_p): Fix pasto in dw_val_class_vms_delta comparison. * optabs.c (expand_binop_directly): Fix pasto in commutation check. * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Fix pasto in initialization.
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r--gcc/tree-ssa-sccvn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index fd74809..238931d 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -3446,7 +3446,7 @@ vn_reference_lookup_pieces (tree vuse, alias_set_type set,
= valueize_refs (shared_lookup_references);
vr1.type = type;
vr1.set = set;
- vr1.set = base_set;
+ vr1.base_set = base_set;
vr1.hashcode = vn_reference_compute_hash (&vr1);
if ((cst = fully_constant_vn_reference_p (&vr1)))
return cst;