Skip to content

Commit ef16ac5

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

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
@@ -170,7 +170,7 @@ static void generateOpGetterDeclarations(irdl::detail::dictionary &dict,
170170
auto opGetters = std::string{};
171171
auto resGetters = std::string{};
172172

173-
for (size_t i = 0; i < opStrings.opOperandNames.size(); ++i) {
173+
for (size_t i = 0, end = opStrings.opOperandNames.size(); i < end; ++i) {
174174
const auto op =
175175
llvm::convertToCamelFromSnakeCase(opStrings.opOperandNames[i], true);
176176
opGetters += llvm::formatv("::mlir::Value get{0}() { return "

0 commit comments

Comments
 (0)