[llvm] 5966079 - [CodeGen] Fix a warning

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 13:19:06 PDT 2023


Author: Kazu Hirata
Date: 2023-08-25T13:18:58-07:00
New Revision: 5966079cf4d4de0285004eef051784d0d9f7a3a6

URL: https://github.com/llvm/llvm-project/commit/5966079cf4d4de0285004eef051784d0d9f7a3a6
DIFF: https://github.com/llvm/llvm-project/commit/5966079cf4d4de0285004eef051784d0d9f7a3a6.diff

LOG: [CodeGen] Fix a warning

This patch fixes:

  llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:3468:14: error:
  variable 'foundJTI' set but not used
  [-Werror,-Wunused-but-set-variable]

Added: 
    

Modified: 
    llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 1456073bd64617..31877d922c7de5 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -3493,6 +3493,7 @@ void forEachJumpTableBranch(
           }
         }
         assert(foundJTI);
+        (void)foundJTI;
       }
     }
   }


        


More information about the llvm-commits mailing list