Skip to content

Commit 3b70fcc

Browse files
committed
[lldb] Update Swift String summary formatter for new bridged case
Supports a new discriminator case: immortal, bridged. Added in swiftlang/swift#74881.
1 parent 086b115 commit 3b70fcc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/source/Plugins/Language/Swift/SwiftFormatters.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ static bool makeStringGutsSummary(
257257
│ Immortal, Small ║ 1 │ASCII│ 1 │ 0 │
258258
├─────────────────────╫─────┼─────┼─────┼─────┤
259259
│ Immortal, Large ║ 1 │ 0 │ 0 │ 0 │
260+
├─────────────────────╫─────┼─────┼─────┼─────┤
261+
│ Immortal, Bridged ║ 1 │ 1 │ 0 │ 0 │
260262
╞═════════════════════╬═════╪═════╪═════╪═════╡
261263
│ Native ║ 0 │ 0 │ 0 │ 0 │
262264
├─────────────────────╫─────┼─────┼─────┼─────┤
@@ -373,7 +375,7 @@ static bool makeStringGutsSummary(
373375
if ((discriminator & 0b0111'0000) == 0)
374376
return error("unexpected discriminator");
375377

376-
if ((discriminator & 0b1110'0000) == 0b0100'0000) { // 010xxxxx: Bridged
378+
if ((discriminator & 0b0110'0000) == 0b0100'0000) { // x10xxxxx: Bridged
377379
TypeSystemClangSP clang_ts_sp =
378380
ScratchTypeSystemClang::GetForTarget(process->GetTarget());
379381
if (!clang_ts_sp)

0 commit comments

Comments
 (0)