diff options
author | Jim Ingham <jingham@apple.com> | 2016-04-06 00:24:17 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2016-04-06 00:24:17 +0000 |
commit | 2fcb27b08ca3a6cc6f4ecf2128cddaf584bb6e7c (patch) | |
tree | bdd33761fced34f8ed7008f1066bf7b9499568a6 /lldb/source/Expression/ExpressionSourceCode.cpp | |
parent | 25d03dbcdede75efd9fb138b97175b44893236fe (diff) | |
download | bcm5719-llvm-2fcb27b08ca3a6cc6f4ecf2128cddaf584bb6e7c.tar.gz bcm5719-llvm-2fcb27b08ca3a6cc6f4ecf2128cddaf584bb6e7c.zip |
Don't write "using $_lldb_local_vars" statements for variables with
no name. These were showing up with a recent clang, I haven't tracked
down why yet, but adding them is clearly wrong.
llvm-svn: 265494
Diffstat (limited to 'lldb/source/Expression/ExpressionSourceCode.cpp')
-rw-r--r-- | lldb/source/Expression/ExpressionSourceCode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/ExpressionSourceCode.cpp b/lldb/source/Expression/ExpressionSourceCode.cpp index 4f5305b5c6e..d5e2cdb48ca 100644 --- a/lldb/source/Expression/ExpressionSourceCode.cpp +++ b/lldb/source/Expression/ExpressionSourceCode.cpp @@ -188,7 +188,7 @@ AddLocalVariableDecls(const lldb::VariableListSP &var_list_sp, StreamString &str lldb::VariableSP var_sp = var_list_sp->GetVariableAtIndex(i); ConstString var_name = var_sp->GetName(); - if (var_name == ConstString("this") || var_name == ConstString(".block_descriptor")) + if (!var_name || var_name == ConstString("this") || var_name == ConstString(".block_descriptor")) continue; stream.Printf("using $__lldb_local_vars::%s;\n", var_name.AsCString()); |