forked from OSchip/llvm-project
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:
parent
8dbbbcd246
commit
699e14f3ce
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue