[clang] [clang][bytecode][NFC] Avoid implicit integer conversion (PR #134983)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 9 02:44:11 PDT 2025
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/134983
See discussion in https://github.com/llvm/llvm-project/pull/134672
>From 365ca307b79b524e26ff91165617d23d46f075d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Wed, 9 Apr 2025 11:43:25 +0200
Subject: [PATCH] [clang][bytecode][NFC] Avoid implicit integer conversion
See discussion in https://github.com/llvm/llvm-project/pull/134672
---
clang/lib/AST/ByteCode/Compiler.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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