From: Maciej W. Rozycki Date: Wed, 22 Nov 2023 01:18:24 +0000 (+0000) Subject: RISC-V: Use `nullptr' in `riscv_expand_conditional_move' X-Git-Tag: basepoints/gcc-15~4433 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a21d507561883460411921a291bfd50a9a1d429;p=thirdparty%2Fgcc.git RISC-V: Use `nullptr' in `riscv_expand_conditional_move' 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. --- diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index c8d3904fe3b0..7450989f35e3 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -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)