Skip to content

Commit e21a21f

Browse files
hhkitmath-fehr
andauthored
Update mlir/lib/Target/IRDLToCpp/IRDLToCpp.cpp
Co-authored-by: Fehr Mathieu <[email protected]>
1 parent ef16ac5 commit e21a21f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/IRDLToCpp/IRDLToCpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static void generateOpGetterDeclarations(irdl::detail::dictionary &dict,
177177
"getStructuredOperands({1}).front(); }\n ",
178178
op, i);
179179
}
180-
for (size_t i = 0; i < opStrings.opResultNames.size(); ++i) {
180+
for (size_t i = 0, end = opStrings.opResultNames.size(); i < end; ++i) {
181181
const auto op =
182182
llvm::convertToCamelFromSnakeCase(opStrings.opResultNames[i], true);
183183
resGetters += llvm::formatv(

0 commit comments

Comments
 (0)