From b1c73532ee8997fe5dfbeb7d223027bdf99758a0 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 9 Dec 2023 14:28:42 +0100 Subject: Vendor import of llvm-project main llvmorg-18-init-14265-ga17671084db1. --- lldb/source/DataFormatters/StringPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/DataFormatters/StringPrinter.cpp') diff --git a/lldb/source/DataFormatters/StringPrinter.cpp b/lldb/source/DataFormatters/StringPrinter.cpp index 4b57e87b4ccd..ab07c74fd185 100644 --- a/lldb/source/DataFormatters/StringPrinter.cpp +++ b/lldb/source/DataFormatters/StringPrinter.cpp @@ -183,7 +183,7 @@ DecodedCharBuffer GetPrintableImpl( &buffer_for_conversion, buffer_end, &codepoint, llvm::strictConversion); assert(result == llvm::conversionOK && "Failed to convert legal utf8 sequence"); - (void)result; + UNUSED_IF_ASSERT_DISABLED(result); // The UTF8 helper always advances by the utf8 encoded length. const unsigned utf8_encoded_len = buffer_for_conversion - buffer; -- cgit v1.3