[clang] 0ac6b4b - [clang][bytecode][NFC] Remove unnecessary loop variable (#207649)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 5 22:15:15 PDT 2026
Author: Timm Baeder
Date: 2026-07-06T07:15:10+02:00
New Revision: 0ac6b4bd5b49b0615d420fb03c59024a4e360a31
URL: https://github.com/llvm/llvm-project/commit/0ac6b4bd5b49b0615d420fb03c59024a4e360a31
DIFF: https://github.com/llvm/llvm-project/commit/0ac6b4bd5b49b0615d420fb03c59024a4e360a31.diff
LOG: [clang][bytecode][NFC] Remove unnecessary loop variable (#207649)
No reason to have the extra `N`.
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 662944a9bd2ca..b4468c94ff675 100644
--- a/clang/lib/AST/ByteCode/Compiler.cpp
+++ b/clang/lib/AST/ByteCode/Compiler.cpp
@@ -4056,7 +4056,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