[clang] [clang][bytecode][NFC] Remove unnecessary loop variable (PR #207649)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 5 21:19:18 PDT 2026


https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/207649

No reason to have the extra `N`.

>From dbd9b12fb143166a8efaf7b911b78a720e5183d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Mon, 6 Jul 2026 06:18:16 +0200
Subject: [PATCH] [clang][bytecode][NFC] Remove unnecessary loop variable

No reason to have the extra `N`.
---
 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 090bbf4596413..77e9efbbabb85 100644
--- a/clang/lib/AST/ByteCode/Compiler.cpp
+++ b/clang/lib/AST/ByteCode/Compiler.cpp
@@ -3822,7 +3822,7 @@ bool Compiler<Emitter>::VisitCXXScalarValueInitExpr(
     PrimType ElemT = classifyPrim(ElemQT);
 
     // Initialize all fields to 0.
-    for (unsigned I = 0, N = NumElems; I != N; ++I) {
+    for (unsigned I = 0; I != NumElems; ++I) {
       if (!this->visitZeroInitializer(ElemT, ElemQT, E))
         return false;
       if (!this->emitInitElem(ElemT, I, E))



More information about the cfe-commits mailing list