[llvm] 79a6a7e - [RISCV] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue May 14 00:49:02 PDT 2024
Author: Kazu Hirata
Date: 2024-05-14T00:48:56-07:00
New Revision: 79a6a7e28fffd14e54a9a208af12d724b6eeb2d4
URL: https://github.com/llvm/llvm-project/commit/79a6a7e28fffd14e54a9a208af12d724b6eeb2d4
DIFF: https://github.com/llvm/llvm-project/commit/79a6a7e28fffd14e54a9a208af12d724b6eeb2d4.diff
LOG: [RISCV] Fix a warning
This patch fixes:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp:19848:11: error:
enumeration value 'SW_GUARDED_BRIND' not handled in switch
[-Werror,-Wswitch]
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index d3e8a86f8766b..8d9b0f2acc5f3 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -20067,6 +20067,7 @@ const char *RISCVTargetLowering::getTargetNodeName(unsigned Opcode) const {
NODE_NAME_CASE(SWAP_CSR)
NODE_NAME_CASE(CZERO_EQZ)
NODE_NAME_CASE(CZERO_NEZ)
+ NODE_NAME_CASE(SW_GUARDED_BRIND)
NODE_NAME_CASE(SF_VC_XV_SE)
NODE_NAME_CASE(SF_VC_IV_SE)
NODE_NAME_CASE(SF_VC_VV_SE)
More information about the llvm-commits
mailing list