[Lldb-commits] [PATCH] D13096: Handle OMPArraySection in ClangASTContext::GetEncoding

Ed Maste via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 23 06:38:51 PDT 2015


emaste created this revision.
emaste added reviewers: granata.enrico, clayborg, brucem.
emaste added a subscriber: lldb-commits.

And remove the switch default, so that the -Wcovered-switch-default warning will catch new types in the future.

http://reviews.llvm.org/D13096

Files:
  source/Symbol/ClangASTContext.cpp

Index: source/Symbol/ClangASTContext.cpp
===================================================================
--- source/Symbol/ClangASTContext.cpp
+++ source/Symbol/ClangASTContext.cpp
@@ -4444,7 +4444,6 @@
         case clang::Type::Builtin:
             switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind())
         {
-            default: assert(0 && "Unknown builtin type!");
             case clang::BuiltinType::Void:
                 break;
                 
@@ -4492,6 +4491,7 @@
             case clang::BuiltinType::Kind::OCLImage2dArray:
             case clang::BuiltinType::Kind::OCLImage3d:
             case clang::BuiltinType::Kind::OCLSampler:
+            case clang::BuiltinType::Kind::OMPArraySection:
             case clang::BuiltinType::Kind::Overload:
             case clang::BuiltinType::Kind::PseudoObject:
             case clang::BuiltinType::Kind::UnknownAny:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13096.35488.patch
Type: text/x-patch
Size: 899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150923/fb203ffa/attachment.bin>


More information about the lldb-commits mailing list