Skip to content

Commit 26fac40

Browse files
committed
Address code review comments
1 parent e823abc commit 26fac40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,7 @@ mlir::LogicalResult CIRToLLVMATanOpLowering::matchAndRewrite(
11071107
cir::ATanOp op, OpAdaptor adaptor,
11081108
mlir::ConversionPatternRewriter &rewriter) const {
11091109
mlir::Type resTy = typeConverter->convertType(op.getType());
1110-
rewriter.replaceOpWithNewOp<mlir::LLVM::ATanOp>(op, resTy,
1111-
adaptor.getOperands()[0]);
1110+
rewriter.replaceOpWithNewOp<mlir::LLVM::ATanOp>(op, resTy, adaptor.getSrc());
11121111
return mlir::success();
11131112
}
11141113

0 commit comments

Comments
 (0)