Skip to content

Commit

Permalink
Use getIn instead of adaptor.getOperands()[0] missed case
Browse files Browse the repository at this point in the history
  • Loading branch information
jpienaar committed Dec 14, 2022
1 parent 0ee7993 commit aefe5fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ class FPToSIOpConversion : public OpConversionPattern<arith::FPToSIOp> {
// required will be handled via interpretation by consumer.
if (resultType.isSignlessInteger(32) || resultType.isSignedInteger(32)) {
rewriter.replaceOpWithNewOp<IREE::VM::CastF32SI32Op>(
srcOp, resultType, adaptor.getOperands()[0]);
srcOp, resultType, adaptor.getIn());
return success();
}
}
Expand Down

0 comments on commit aefe5fe

Please sign in to comment.