Handle (or at least don't crash) trying to get the encoding for a bunch of new builtin types in clang trunk

llvm-svn: 240606
This commit is contained in:
Enrico Granata 2015-06-24 23:13:23 +00:00
parent cde92423d7
commit 5e1be09dab
1 changed files with 18 additions and 0 deletions

View File

@ -2246,6 +2246,24 @@ ClangASTType::GetEncoding (uint64_t &count) const
case clang::BuiltinType::ObjCSel: return lldb::eEncodingUint;
case clang::BuiltinType::NullPtr: return lldb::eEncodingUint;
case clang::BuiltinType::Kind::ARCUnbridgedCast:
case clang::BuiltinType::Kind::BoundMember:
case clang::BuiltinType::Kind::BuiltinFn:
case clang::BuiltinType::Kind::Dependent:
case clang::BuiltinType::Kind::Half:
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::OCLImage3d:
case clang::BuiltinType::Kind::OCLSampler:
case clang::BuiltinType::Kind::Overload:
case clang::BuiltinType::Kind::PseudoObject:
case clang::BuiltinType::Kind::UnknownAny:
break;
}
break;
// All pointer types are represented as unsigned integer encodings.