diff options
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py | 1 | ||||
-rw-r--r-- | lldb/source/Core/ValueObject.cpp | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py b/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py index 1453f2c8792..09439e2bc4b 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py +++ b/lldb/packages/Python/lldbsuite/test/lang/c/vla/TestVLA.py @@ -9,7 +9,6 @@ class TestVLA(TestBase): mydir = TestBase.compute_mydir(__file__) @skipIf(compiler="clang", compiler_version=['<', '8.0']) - @expectedFailureAll(oslist=no_match(lldbplatformutil.getDarwinOSTriples())) def test_variable_list(self): self.build() _, process, _, _ = lldbutil.run_to_source_breakpoint( diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 1d9d7d49543..e2b91fee5d2 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -31,6 +31,7 @@ #include "lldb/Symbol/Declaration.h" #include "lldb/Symbol/SymbolContext.h" #include "lldb/Symbol/Type.h" +#include "lldb/Symbol/Variable.h" #include "lldb/Target/ExecutionContext.h" #include "lldb/Target/Language.h" #include "lldb/Target/LanguageRuntime.h" @@ -1704,6 +1705,9 @@ bool ValueObject::IsRuntimeSupportValue() { runtime = process->GetObjCLanguageRuntime(); if (runtime) return runtime->IsRuntimeSupportValue(*this); + // If there is no language runtime, trust the compiler to mark all + // runtime support variables as artificial. + return GetVariable() && GetVariable()->IsArtificial(); } return false; } |