From 41dc5526a69d13856b6dc4811e5e7cc89f45b284 Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Thu, 30 May 2019 21:03:53 +0000 Subject: [PATCH] [Target] Generalize Process::IsPossibleDynamicValue llvm-svn: 362154 --- lldb/source/Target/Process.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 66204da..1d1fda1 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -1631,12 +1631,12 @@ bool Process::IsPossibleDynamicValue(ValueObject &in_value) { return runtime ? runtime->CouldHaveDynamicValue(in_value) : false; } - LanguageRuntime *cpp_runtime = GetLanguageRuntime(eLanguageTypeC_plus_plus); - if (cpp_runtime && cpp_runtime->CouldHaveDynamicValue(in_value)) - return true; + for (LanguageRuntime *runtime : GetLanguageRuntimes()) { + if (runtime->CouldHaveDynamicValue(in_value)) + return true; + } - LanguageRuntime *objc_runtime = GetLanguageRuntime(eLanguageTypeObjC); - return objc_runtime ? objc_runtime->CouldHaveDynamicValue(in_value) : false; + return false; } void Process::SetDynamicCheckers(DynamicCheckerFunctions *dynamic_checkers) { -- 2.7.4