From b92bd7538e167ae058eedaa948fcb3a7ceecd5af Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 1 Oct 2015 16:28:02 +0000 Subject: Made Target hold a map of languages to TypeSystems, and added some accessors. Also added some target-level search functions so that persistent variables and symbols can be searched for without hand-iterating across the map of TypeSystems. llvm-svn: 249027 --- lldb/source/Expression/UserExpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Expression/UserExpression.cpp') diff --git a/lldb/source/Expression/UserExpression.cpp b/lldb/source/Expression/UserExpression.cpp index a493cc80d88..7e0446f507c 100644 --- a/lldb/source/Expression/UserExpression.cpp +++ b/lldb/source/Expression/UserExpression.cpp @@ -587,7 +587,7 @@ UserExpression::Evaluate (ExecutionContext &exe_ctx, if (options.GetResultIsInternal() && expr_result && process) { - process->GetTarget().GetScratchTypeSystemForLanguage(lldb::eLanguageTypeC)->GetPersistentExpressionState()->RemovePersistentVariable (expr_result); + process->GetTarget().GetPersistentExpressionStateForLanguage(language)->RemovePersistentVariable (expr_result); } if (execution_results != lldb::eExpressionCompleted) -- cgit v1.2.3