[Lldb-commits] [lldb] r368424 - [lldb][NFC] Fix warning about missing switch cases

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 9 02:58:48 PDT 2019

Author: teemperor
Date: Fri Aug  9 02:58:47 2019
New Revision: 368424

URL: http://llvm.org/viewvc/llvm-project?rev=368424&view=rev
[lldb][NFC] Fix warning about missing switch cases

These types were recently added in D62960 but it seems the patch didn't
consider LLDB which causes a bunch of compiler warnings about
missing enum values. It seems this feature isn't fully implemented yet,
so I don't think we can write any test for this. For now lets just add
the missing types to our usual list of unsupported types.


Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=368424&r1=368423&r2=368424&view=diff
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Fri Aug  9 02:58:47 2019
@@ -5258,6 +5258,20 @@ lldb::Encoding ClangASTContext::GetEncod
     case clang::BuiltinType::OCLIntelSubgroupAVCImeSingleRefStreamin:
     case clang::BuiltinType::OCLIntelSubgroupAVCImeDualRefStreamin:
+    case clang::BuiltinType::SveBool:
+    case clang::BuiltinType::SveInt8:
+    case clang::BuiltinType::SveInt16:
+    case clang::BuiltinType::SveInt32:
+    case clang::BuiltinType::SveInt64:
+    case clang::BuiltinType::SveUint8:
+    case clang::BuiltinType::SveUint16:
+    case clang::BuiltinType::SveUint32:
+    case clang::BuiltinType::SveUint64:
+    case clang::BuiltinType::SveFloat16:
+    case clang::BuiltinType::SveFloat32:
+    case clang::BuiltinType::SveFloat64:
+      break;
   // All pointer types are represented as unsigned integer encodings. We may

More information about the lldb-commits mailing list