From b3a36df39e60f1f5833930190b29a0a41336c24d Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Sat, 19 Mar 2016 00:51:43 +0000 Subject: Handle any persistent Decl in the Clang expression parser, not just types. Persistent decls have traditionally only been types. However, we want to be able to persist more things, like functions and global variables. This changes some of the nomenclature and the lookup rules to make this possible. llvm-svn: 263864 --- lldb/source/Commands/CommandObjectMemory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectMemory.cpp') diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index 7a0da83..b9f9eda 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -540,7 +540,7 @@ protected: { if (ClangPersistentVariables *persistent_vars = llvm::dyn_cast_or_null(target->GetPersistentExpressionStateForLanguage(lldb::eLanguageTypeC))) { - clang::TypeDecl *tdecl = persistent_vars->GetPersistentType(ConstString(lookup_type_name)); + clang::TypeDecl *tdecl = llvm::dyn_cast_or_null(persistent_vars->GetPersistentDecl(ConstString(lookup_type_name))); if (tdecl) { -- cgit v1.1