Skip to content

Commit bc37a24

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mlir/lib/Target/IRDLToCpp/IRDLToCpp.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ static OpStrings getStrings(irdl::OperationOp op) {
8383
auto operandOp =
8484
operands.empty() ? std::optional<irdl::OperandsOp>{} : *operands.begin();
8585

86-
auto results = op.getOps<irdl::ResultsOp>();
87-
auto resultOp =
88-
results.empty() ? std::optional<irdl::ResultsOp>{} : *results.begin();
86+
auto resultOp = op.getOp<irdl::ResultsOp>();
8987

9088
OpStrings strings;
9189
strings.opName = op.getSymName();

0 commit comments

Comments
 (0)