]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: silence warning
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 29 Sep 2023 14:45:30 +0000 (15:45 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Fri, 6 Oct 2023 13:16:32 +0000 (14:16 +0100)
gcc/ChangeLog:

* config/gcn/gcn.cc (print_operand): Adjust xcode type to fix warning.

gcc/config/gcn/gcn.cc

index f6cff65970314bd6a6558140b95c7e62d7bc0d3c..ef3b6472a52d693f8c9427a634a4779a5b202ef7 100644 (file)
@@ -6991,7 +6991,7 @@ print_operand_address (FILE *file, rtx mem)
 void
 print_operand (FILE *file, rtx x, int code)
 {
-  int xcode = x ? GET_CODE (x) : 0;
+  rtx_code xcode = x ? GET_CODE (x) : UNKNOWN;
   bool invert = false;
   switch (code)
     {