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/optabs.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/optabs.c')
-rw-r--r-- | gcc/optabs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 8dd3512..1456e59 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -1050,7 +1050,7 @@ expand_binop_directly (enum insn_code icode, machine_mode mode, optab binoptab, commutative_p = commutative_optab_p (binoptab); if (commutative_p && GET_MODE (xop0) != xmode0 && GET_MODE (xop1) != xmode1 - && GET_MODE (xop0) == xmode1 && GET_MODE (xop1) == xmode1) + && GET_MODE (xop0) == xmode1 && GET_MODE (xop1) == xmode0) std::swap (xop0, xop1); /* If we are optimizing, force expensive constants into a register. */ |