Supply a default implementation of IsRuntimeSupportValue.
Thanks to Pavel for pointing this out.
llvm-svn: 359925
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 1d9d7d4..e2b91fe 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 @@
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;
}