[Lldb-commits] [lldb] r248414 - Handle new types in ClangASTContext::GetEncoding
Ed Maste via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 23 11:32:35 PDT 2015
Author: emaste
Date: Wed Sep 23 13:32:34 2015
New Revision: 248414
URL: http://llvm.org/viewvc/llvm-project?rev=248414&view=rev
Log:
Handle new types in ClangASTContext::GetEncoding
And remove the switch default, so that the -Wcovered-switch-default
warning will catch new types next time they're added.
Differential Revision: http://reviews.llvm.org/D13096
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=248414&r1=248413&r2=248414&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Wed Sep 23 13:32:34 2015
@@ -4444,7 +4444,6 @@ ClangASTContext::GetEncoding (lldb::opaq
case clang::Type::Builtin:
switch (llvm::cast<clang::BuiltinType>(qual_type)->getKind())
{
- default: assert(0 && "Unknown builtin type!");
case clang::BuiltinType::Void:
break;
@@ -4484,14 +4483,25 @@ ClangASTContext::GetEncoding (lldb::opaq
case clang::BuiltinType::Kind::BuiltinFn:
case clang::BuiltinType::Kind::Dependent:
case clang::BuiltinType::Kind::Half:
+ case clang::BuiltinType::Kind::OCLClkEvent:
case clang::BuiltinType::Kind::OCLEvent:
case clang::BuiltinType::Kind::OCLImage1d:
case clang::BuiltinType::Kind::OCLImage1dArray:
case clang::BuiltinType::Kind::OCLImage1dBuffer:
case clang::BuiltinType::Kind::OCLImage2d:
case clang::BuiltinType::Kind::OCLImage2dArray:
+ case clang::BuiltinType::Kind::OCLImage2dArrayDepth:
+ case clang::BuiltinType::Kind::OCLImage2dArrayMSAA:
+ case clang::BuiltinType::Kind::OCLImage2dArrayMSAADepth:
+ case clang::BuiltinType::Kind::OCLImage2dDepth:
+ case clang::BuiltinType::Kind::OCLImage2dMSAA:
+ case clang::BuiltinType::Kind::OCLImage2dMSAADepth:
case clang::BuiltinType::Kind::OCLImage3d:
+ case clang::BuiltinType::Kind::OCLQueue:
+ case clang::BuiltinType::Kind::OCLNDRange:
+ case clang::BuiltinType::Kind::OCLReserveID:
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:
More information about the lldb-commits
mailing list