summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/UserSettingsController.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2016-07-07 18:25:48 +0000
committerJim Ingham <jingham@apple.com>2016-07-07 18:25:48 +0000
commitbed6779c7a839ed6dab85d0198e105021b63552f (patch)
tree41a5ed593b0c868d9565b5c8364386f92513f906 /lldb/source/Core/UserSettingsController.cpp
parentf39977112a2ecc545d6d89a9875f6a35a54f68e6 (diff)
downloadbcm5719-llvm-bed6779c7a839ed6dab85d0198e105021b63552f.tar.gz
bcm5719-llvm-bed6779c7a839ed6dab85d0198e105021b63552f.zip
Add an "experimental" setting to disable injecting local variables into expressions.
This feature was added to solve a lookup problem in expressions when local variables shadow ivars. That solution requires fully realizing all local variables to evaluate any expression, and can cause significant performance problems when evaluating expressions in frames that have many complex locals. Until we get a better solution, this setting mitigates the problem when you don't have local variables that shadow ivars. <rdar://problem/27226122> llvm-svn: 274783
Diffstat (limited to 'lldb/source/Core/UserSettingsController.cpp')
-rw-r--r--lldb/source/Core/UserSettingsController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/UserSettingsController.cpp b/lldb/source/Core/UserSettingsController.cpp
index cf8fd827147..6313fa1eb13 100644
--- a/lldb/source/Core/UserSettingsController.cpp
+++ b/lldb/source/Core/UserSettingsController.cpp
@@ -121,7 +121,7 @@ Properties::IsSettingExperimental(const char *setting)
return false;
const char *experimental = GetExperimentalSettingsName();
- auto dot_pos = strchr(setting, '.');
+ const char *dot_pos = strchr(setting, '.');
if (dot_pos == nullptr)
return strcmp(experimental, setting) == 0;
else
OpenPOWER on IntegriCloud