Skip to content

Commit d20d8db

Browse files
authored
[lldb] Fix options passed to decl printing helper (#6807)
Correction to #6795. This should be a copy constructed instance.
1 parent d384c37 commit d20d8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/DataFormatters/ValueObjectPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ void ValueObjectPrinter::PrintDecl() {
300300
ConstString type_name_cstr(typeName.GetString());
301301
ConstString var_name_cstr(varName.GetString());
302302

303-
DumpValueObjectOptions decl_print_options;
303+
DumpValueObjectOptions decl_print_options = m_options;
304304
// Pass printing helpers an option object that indicates whether the name
305305
// should be shown or hidden.
306306
decl_print_options.SetHideName(!ShouldShowName());

0 commit comments

Comments
 (0)