diff options
author | Richard Biener <rguenther@suse.de> | 2020-04-17 09:19:32 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-04-17 10:38:45 +0200 |
commit | a64468a3034dd8e2d0794a5be84b8da544ffe2c3 (patch) | |
tree | ff3843bd25bd6f1d0aa8dd77132bf5f7bc8ca8e0 /gcc/dwarf2out.c | |
parent | c41884a09206be0e21cad7eea71b9754daa969d4 (diff) | |
download | gcc-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/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 7d270f2..787340e 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -1479,7 +1479,7 @@ dw_val_equal_p (dw_val_node *a, dw_val_node *b) case dw_val_class_vms_delta: return (!strcmp (a->v.val_vms_delta.lbl1, b->v.val_vms_delta.lbl1) - && !strcmp (a->v.val_vms_delta.lbl1, b->v.val_vms_delta.lbl1)); + && !strcmp (a->v.val_vms_delta.lbl2, b->v.val_vms_delta.lbl2)); case dw_val_class_discr_value: return (a->v.val_discr_value.pos == b->v.val_discr_value.pos |