Skip to content

Commit 981be8c

Browse files
author
git apple-llvm automerger
committed
Merge commit '1f2492b7daf6' from llvm.org/main into next
2 parents 3bd6236 + 1f2492b commit 981be8c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcxx/utils/gdb/libcxx/printers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ def to_string(self):
234234
else:
235235
data = short_field["__data_"]
236236
size = self._get_short_size(short_field, short_size)
237-
if hasattr(data, "lazy_string"):
238-
return data.lazy_string(length=size)
239-
return data.string(length=size)
237+
return data.lazy_string(length=size)
240238

241239
def display_hint(self):
242240
return "string"

0 commit comments

Comments
 (0)