Skip to content

Commit 387055c

Browse files
committed
Resovle comment
1 parent bcab44a commit 387055c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Conversion/TritonGPUToLLVM/FuncOpToLLVM.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,8 @@ struct FuncOpConversion : public ConvertOpToLLVMPattern<triton::FuncOp> {
145145
auto amendedFuncOp = amendFuncOp(funcOp, rewriter, targetInfo);
146146

147147
FailureOr<LLVM::LLVMFuncOp> maybeNewFuncOp =
148-
mlir::convertFuncOpToLLVMFuncOp(
149-
cast<FunctionOpInterface>(amendedFuncOp.getOperation()), rewriter,
150-
*getTypeConverter());
148+
mlir::convertFuncOpToLLVMFuncOp(amendedFuncOp, rewriter,
149+
*getTypeConverter());
151150
if (failed(maybeNewFuncOp)) {
152151
return failure();
153152
}

0 commit comments

Comments
 (0)