[lldb][NFC] Fix warning about missing switch cases
authorRaphael Isemann <teemperor@gmail.com>
Fri, 9 Aug 2019 09:58:47 +0000 (09:58 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Fri, 9 Aug 2019 09:58:47 +0000 (09:58 +0000)
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.

llvm-svn: 368424

lldb/source/Symbol/ClangASTContext.cpp

index 0add4968cc6a7697da313761f2a877d15e7fb446..8c9cbe08ee44140696abfeb20e540878cae52ab5 100644 (file)
@@ -5258,6 +5258,20 @@ lldb::Encoding ClangASTContext::GetEncoding(lldb::opaque_compiler_type_t type,
     case clang::BuiltinType::OCLIntelSubgroupAVCImeSingleRefStreamin:
     case clang::BuiltinType::OCLIntelSubgroupAVCImeDualRefStreamin:
       break;
+
+    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;
     }
     break;
   // All pointer types are represented as unsigned integer encodings. We may