Silence unhandled enums warning in ClangASTContext::GetEncoding
authorIlya Biryukov <ibiryukov@google.com>
Tue, 5 Jun 2018 10:07:07 +0000 (10:07 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 5 Jun 2018 10:07:07 +0000 (10:07 +0000)
The warning started firing after r333923, which added new builtin
types (fixed point types) into clang.
This patch merely silences the warning to unblock our integrate, does
not aim to support the new types in lldb.

llvm-svn: 333999

lldb/source/Symbol/ClangASTContext.cpp

index 87d347f..9888670 100644 (file)
@@ -4934,6 +4934,15 @@ lldb::Encoding ClangASTContext::GetEncoding(lldb::opaque_compiler_type_t type,
     case clang::BuiltinType::UInt128:
       return lldb::eEncodingUint;
 
+    // Fixed point types. Note that they are currently ignored.
+    case clang::BuiltinType::ShortAccum:
+    case clang::BuiltinType::Accum:
+    case clang::BuiltinType::LongAccum:
+    case clang::BuiltinType::UShortAccum:
+    case clang::BuiltinType::UAccum:
+    case clang::BuiltinType::ULongAccum:
+      break;
+
     case clang::BuiltinType::Half:
     case clang::BuiltinType::Float:
     case clang::BuiltinType::Float16: