[lldb] Fix -Wswitch in TypeSystemClang.cpp ('SveBoolx2' and 'SveBoolx4' not handled...
authorJie Fu <jiefu@tencent.com>
Tue, 14 Mar 2023 14:24:37 +0000 (22:24 +0800)
committerJie Fu <jiefu@tencent.com>
Tue, 14 Mar 2023 14:24:37 +0000 (22:24 +0800)
/data/llvm-project/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4859:13: error: enumeration values 'SveBoolx2' and 'SveBoolx4' not handled in switch [-Werror,-Wswitch]
    switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

index 1d4d66d6e6dc2da27b3efe8ca3070cf4eeee4435..a739494cffcc41d7a1f5c57f482fd0701688f30a 100644 (file)
@@ -5003,6 +5003,8 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type,
 
     // ARM -- Scalable Vector Extension
     case clang::BuiltinType::SveBool:
+    case clang::BuiltinType::SveBoolx2:
+    case clang::BuiltinType::SveBoolx4:
     case clang::BuiltinType::SveCount:
     case clang::BuiltinType::SveInt8:
     case clang::BuiltinType::SveInt8x2: