[Lldb-commits] [lldb] r333999 - Silence unhandled enums warning in ClangASTContext::GetEncoding

Ilya Biryukov via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 5 03:07:07 PDT 2018


Author: ibiryukov
Date: Tue Jun  5 03:07:07 2018
New Revision: 333999

URL: http://llvm.org/viewvc/llvm-project?rev=333999&view=rev
Log:
Silence unhandled enums warning in ClangASTContext::GetEncoding

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.

Modified:
    lldb/trunk/source/Symbol/ClangASTContext.cpp

Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=333999&r1=333998&r2=333999&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Tue Jun  5 03:07:07 2018
@@ -4934,6 +4934,15 @@ lldb::Encoding ClangASTContext::GetEncod
     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:




More information about the lldb-commits mailing list