[Lldb-commits] [lldb] r205932 - When trying to extract the type info for an r-value reference type, dont' cast to an l-value reference type
Enrico Granata
egranata at apple.com
Wed Apr 9 14:54:17 PDT 2014
Author: enrico
Date: Wed Apr 9 16:54:17 2014
New Revision: 205932
URL: http://llvm.org/viewvc/llvm-project?rev=205932&view=rev
Log:
When trying to extract the type info for an r-value reference type, dont' cast to an l-value reference type
Modified:
lldb/trunk/source/Symbol/ClangASTType.cpp
Modified: lldb/trunk/source/Symbol/ClangASTType.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTType.cpp?rev=205932&r1=205931&r2=205932&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTType.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTType.cpp Wed Apr 9 16:54:17 2014
@@ -714,7 +714,7 @@ ClangASTType::IsReferenceType (ClangASTT
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);
More information about the lldb-commits
mailing list