]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Use `nullptr' in `riscv_expand_conditional_move'
authorMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:24 +0000 (01:18 +0000)
committerMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:24 +0000 (01:18 +0000)
Use `nullptr' for consistency rather than 0 to initialize `invert_ptr'.

gcc/
* config/riscv/riscv.cc (riscv_expand_conditional_move): Use
`nullptr' rather than 0 to initialize a pointer.

gcc/config/riscv/riscv.cc

index c8d3904fe3b0eebd8f25a8fc7dd33d2c5e8930be..7450989f35e34f65f44524909867cf73e54312ff 100644 (file)
@@ -4053,7 +4053,7 @@ riscv_expand_conditional_move (rtx dest, rtx op, rtx cons, rtx alt)
       if (!equality_operator (op, VOIDmode) || op1 != CONST0_RTX (mode))
        {
          enum rtx_code new_code = NE;
-         bool *invert_ptr = 0;
+         bool *invert_ptr = nullptr;
          bool invert = false;
 
          if (code == LE || code == GE)