Skip to content

Commit 6851099

Browse files
author
Greg Clayton
committed
Fix a parser_type to get created with the right AST, and also make variables made from symbols to not be "void * const", but just "void *".
llvm-svn: 170165
1 parent a633af3 commit 6851099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Expression/ClangExpressionDeclMap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,10 +3202,10 @@ ClangExpressionDeclMap::AddOneGenericVariable(NameSearchContext &context,
32023202

32033203
ASTContext *scratch_ast_context = target->GetScratchClangASTContext()->getASTContext();
32043204

3205-
TypeFromUser user_type (ClangASTContext::CreateLValueReferenceType(scratch_ast_context, ClangASTContext::GetVoidPtrType(scratch_ast_context, true)),
3205+
TypeFromUser user_type (ClangASTContext::CreateLValueReferenceType(scratch_ast_context, ClangASTContext::GetVoidPtrType(scratch_ast_context, false)),
32063206
scratch_ast_context);
32073207

3208-
TypeFromParser parser_type (ClangASTContext::CreateLValueReferenceType(scratch_ast_context, ClangASTContext::GetVoidPtrType(m_ast_context, true)),
3208+
TypeFromParser parser_type (ClangASTContext::CreateLValueReferenceType(m_ast_context, ClangASTContext::GetVoidPtrType(m_ast_context, false)),
32093209
m_ast_context);
32103210

32113211
NamedDecl *var_decl = context.AddVarDecl(parser_type.GetOpaqueQualType());

0 commit comments

Comments
 (0)