diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-05-14 09:16:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-14 09:16:20 +0200 |
commit | a6ae2237aad763c2abf90f28c247a084216a48b2 (patch) | |
tree | d5625899a7935ca42fb57f5eb5c3354689586554 /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | 4554c852398d0f6e46950e9bc51f74aa1b11b29a (diff) | |
download | llvm-a6ae2237aad763c2abf90f28c247a084216a48b2.zip llvm-a6ae2237aad763c2abf90f28c247a084216a48b2.tar.gz llvm-a6ae2237aad763c2abf90f28c247a084216a48b2.tar.bz2 |
[clang][bytecode][NFC] Avoid an implicit integer conversion (#139845)
getCharByteWidth() returns an unsigned.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp index 96ae1f5..3d1311a 100644 --- a/clang/lib/AST/ByteCode/Compiler.cpp +++ b/clang/lib/AST/ByteCode/Compiler.cpp @@ -2435,7 +2435,7 @@ bool Compiler<Emitter>::VisitStringLiteral(const StringLiteral *E) { // emitted. Read only the array length from the string literal. unsigned ArraySize = CAT->getZExtSize(); unsigned N = std::min(ArraySize, E->getLength()); - size_t CharWidth = E->getCharByteWidth(); + unsigned CharWidth = E->getCharByteWidth(); for (unsigned I = 0; I != N; ++I) { uint32_t CodeUnit = E->getCodeUnit(I); |