From fb4d41ab261218a8a60e285dfefc0ab8c4f99795 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 27 May 2025 16:20:01 -0700 Subject: [PATCH] [lldb] Fix warnings This patch fixes: lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4137:11: error: enumeration value 'HLSLInlineSpirv' not handled in switch [-Werror,-Wswitch] lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4844:11: error: enumeration value 'HLSLInlineSpirv' not handled in switch [-Werror,-Wswitch] lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:5142:11: error: enumeration value 'HLSLInlineSpirv' not handled in switch [-Werror,-Wswitch] --- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp index 8c19d5be76bcf..16ea40bd5e9bc 100644 --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp @@ -4262,6 +4262,8 @@ TypeSystemClang::GetTypeClass(lldb::opaque_compiler_type_t type) { case clang::Type::HLSLAttributedResource: break; + case clang::Type::HLSLInlineSpirv: + break; } // We don't know hot to display this type... return lldb::eTypeClassOther; @@ -5128,6 +5130,8 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type, case clang::Type::HLSLAttributedResource: break; + case clang::Type::HLSLInlineSpirv: + break; } count = 0; return lldb::eEncodingInvalid; @@ -5292,6 +5296,8 @@ lldb::Format TypeSystemClang::GetFormat(lldb::opaque_compiler_type_t type) { case clang::Type::HLSLAttributedResource: break; + case clang::Type::HLSLInlineSpirv: + break; } // We don't know hot to display this type... return lldb::eFormatBytes;