https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/174742
We were checking whether the structured data value could be got as a boolean, not what value that boolean had. This meant we were incorrectly showing "yes" for everything. >From ae4e4f023642456ece7c501a19b8ceeedb20e3b5 Mon Sep 17 00:00:00 2001 From: David Spickett <[email protected]> Date: Wed, 7 Jan 2026 10:44:37 +0000 Subject: [PATCH] [lldb] Correct version -v output for booleans We were checking whether the structured data value could be got as a boolean, not what value that boolean had. This meant we were incorrectly showing "yes" for everything. --- lldb/source/Commands/CommandObjectVersion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Commands/CommandObjectVersion.cpp b/lldb/source/Commands/CommandObjectVersion.cpp index fb7e399eb7260..a19caca6469ac 100644 --- a/lldb/source/Commands/CommandObjectVersion.cpp +++ b/lldb/source/Commands/CommandObjectVersion.cpp @@ -55,7 +55,7 @@ static void dump(const StructuredData::Dictionary &config, Stream &s) { s << " " << key << ": "; if (StructuredData::Boolean *boolean = value_sp->GetAsBoolean()) - s << (boolean ? "yes" : "no"); + s << (boolean->GetValue() ? "yes" : "no"); else if (StructuredData::Array *array = value_sp->GetAsArray()) dump(*array, s); s << '\n'; _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
