public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Use `nullptr' in `riscv_expand_conditional_move'
@ 2023-11-22  5:09 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-11-22  5:09 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:792801f53d0f729ca52e0720800a9433204da564

commit 792801f53d0f729ca52e0720800a9433204da564
Author: Maciej W. Rozycki <macro@embecosm.com>
Date:   Wed Nov 22 01:18:24 2023 +0000

    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.
    
    (cherry picked from commit 5a21d507561883460411921a291bfd50a9a1d429)

Diff:
---
 gcc/config/riscv/riscv.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index c8d3904fe3b..7450989f35e 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-22  5:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22  5:09 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Use `nullptr' in `riscv_expand_conditional_move' Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).