Skip to content

Commit c742a5d

Browse files
authored
[NFC] Fix multi-character character constant warning (#112809)
This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warning: In file included from llvm-project/llvm/lib/BinaryFormat/Minidump.cpp:9: llvm-project/llvm/include/llvm/BinaryFormat/Minidump.h:250:37: error: multi-character character constant [-Werror=multichar] 250 | static const uint32_t LLDB_FLAG = 'LLDB';
1 parent d7ae43e commit c742a5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/BinaryFormat/Minidump.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static_assert(sizeof(Thread) == 48);
247247
struct Exception {
248248
static constexpr size_t MaxParameters = 15;
249249
static constexpr size_t MaxParameterBytes = MaxParameters * sizeof(uint64_t);
250-
static const uint32_t LLDB_FLAG = 'LLDB';
250+
static const uint32_t LLDB_FLAG = 0x4C4C4442; // ASCII for 'LLDB'
251251

252252
support::ulittle32_t ExceptionCode;
253253
support::ulittle32_t ExceptionFlags;

0 commit comments

Comments
 (0)