[libc] build fix: always use our char8_t headers even in overlay mode (#144433)

Build fix caused by certain platforms not providing char8_t when
expected
Temporary fix to just always use our own definition, even in overlay
mode.
This commit is contained in:
Uzair Nawaz 2025-06-16 21:28:51 +00:00 committed by GitHub
parent 60a59e350b
commit 38daa6d4ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 9 deletions

View File

@ -9,14 +9,6 @@
#ifndef LLVM_LIBC_HDR_TYPES_CHAR8_T_H
#define LLVM_LIBC_HDR_TYPES_CHAR8_T_H
#ifdef LIBC_FULL_BUILD
#include "include/llvm-libc-types/char8_t.h"
#else // overlay mode
#include "hdr/uchar_overlay.h"
#endif // LLVM_LIBC_FULL_BUILD
#endif // LLVM_LIBC_HDR_TYPES_CHAR8_T_H

View File

@ -70,7 +70,7 @@ ErrorOr<char8_t> CharacterConverter::pop_utf8() {
char32_t output;
// Shift to get the next 6 bits from the utf32 encoding
const char32_t shift_amount =
const size_t shift_amount =
(state->total_bytes - state->bytes_processed - 1) * ENCODED_BITS_PER_UTF8;
if (state->bytes_processed == 0) {
/*