[Lldb-commits] [lldb] 5195e14 - [lldb] Add missing switch case for SveCount in TypeSystemClang::GetEncoding (NFC)

Jie Fu via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 7 17:10:49 PST 2023


Author: Jie Fu
Date: 2023-03-08T09:08:42+08:00
New Revision: 5195e14bc1222e1b3f1b7b43c04e1c1ac3504cb1

URL: https://github.com/llvm/llvm-project/commit/5195e14bc1222e1b3f1b7b43c04e1c1ac3504cb1
DIFF: https://github.com/llvm/llvm-project/commit/5195e14bc1222e1b3f1b7b43c04e1c1ac3504cb1.diff

LOG: [lldb] Add missing switch case for SveCount in TypeSystemClang::GetEncoding (NFC)

/data/llvm-project/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4841:13: error: enumeration value 'SveCount' not handled in switch [-Werror,-Wswitch]
    switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind()) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
index f26147e7d408e..49ebf5181477a 100644
--- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
@@ -5033,6 +5033,7 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type,
     case clang::BuiltinType::SveFloat64x2:
     case clang::BuiltinType::SveFloat64x3:
     case clang::BuiltinType::SveFloat64x4:
+    case clang::BuiltinType::SveCount:
       break;
 
     // RISC-V V builtin types.


        


More information about the lldb-commits mailing list