Revert the vector part of Enrico's change in r198729;

it is causing an llvm assert when run against
test/functionalities/data-formatter/rdar-10642615,

Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file llvm/include/llvm/Support/Casting.h, line 239.

llvm-svn: 198809
This commit is contained in:
Jason Molenda 2014-01-08 23:35:54 +00:00
parent 875288bd82
commit 5005de4bac
1 changed files with 1 additions and 1 deletions

View File

@ -3245,7 +3245,7 @@ ClangASTType::GetChildClangTypeAtIndex (ExecutionContext *exe_ctx,
case clang::Type::ExtVector:
if (idx_is_valid)
{
const VectorType *array = cast<VectorType>(GetQualType().getTypePtr());
const VectorType *array = cast<VectorType>(parent_qual_type.getTypePtr());
if (array)
{
ClangASTType element_type (m_ast, array->getElementType());