When trying to extract the type info for an r-value reference type, dont' cast to an l-value reference type

llvm-svn: 205932
This commit is contained in:
Enrico Granata 2014-04-09 21:54:17 +00:00
parent 8dbbbcd246
commit 699e14f3ce
1 changed files with 1 additions and 1 deletions

View File

@ -714,7 +714,7 @@ ClangASTType::IsReferenceType (ClangASTType *pointee_type) const
return true;
case clang::Type::RValueReference:
if (pointee_type)
pointee_type->SetClangType(m_ast, cast<LValueReferenceType>(qual_type)->desugar());
pointee_type->SetClangType(m_ast, cast<RValueReferenceType>(qual_type)->desugar());
return true;
case clang::Type::Typedef:
return ClangASTType(m_ast, cast<TypedefType>(qual_type)->getDecl()->getUnderlyingType()).IsReferenceType(pointee_type);