[clang] 78c86b3 - [clang][bytecode][NFC] Avoid implicit integer conversion (#134983)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 9 04:44:28 PDT 2025
Author: Timm Baeder
Date: 2025-04-09T13:44:24+02:00
New Revision: 78c86b38b04bdabc76f631263ab0f4faf8698af6
URL: https://github.com/llvm/llvm-project/commit/78c86b38b04bdabc76f631263ab0f4faf8698af6
DIFF: https://github.com/llvm/llvm-project/commit/78c86b38b04bdabc76f631263ab0f4faf8698af6.diff
LOG: [clang][bytecode][NFC] Avoid implicit integer conversion (#134983)
See discussion in https://github.com/llvm/llvm-project/pull/134672
Added:
Modified:
clang/lib/AST/ByteCode/Compiler.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp
index e4f87d8b2af04..9f784cd504c76 100644
--- a/clang/lib/AST/ByteCode/Compiler.cpp
+++ b/clang/lib/AST/ByteCode/Compiler.cpp
@@ -6823,7 +6823,7 @@ bool Compiler<Emitter>::emitDestruction(const Descriptor *Desc,
return true;
}
- if (size_t N = Desc->getNumElems()) {
+ if (unsigned N = Desc->getNumElems()) {
for (ssize_t I = N - 1; I >= 0; --I) {
if (!this->emitConstUint64(I, Loc))
return false;
More information about the cfe-commits
mailing list