[flang-commits] [flang] 7847b1c - [flang][cuda][NFC] Silence warning triggered in buildbot
Valentin Clement via flang-commits
flang-commits at lists.llvm.org
Tue May 21 11:36:08 PDT 2024
Author: Valentin Clement
Date: 2024-05-21T11:35:51-07:00
New Revision: 7847b1ca00fb4649799125592f01cd38c5509b45
URL: https://github.com/llvm/llvm-project/commit/7847b1ca00fb4649799125592f01cd38c5509b45
DIFF: https://github.com/llvm/llvm-project/commit/7847b1ca00fb4649799125592f01cd38c5509b45.diff
LOG: [flang][cuda][NFC] Silence warning triggered in buildbot
Added:
Modified:
flang/lib/Optimizer/Dialect/CUF/CUFOps.cpp
Removed:
################################################################################
diff --git a/flang/lib/Optimizer/Dialect/CUF/CUFOps.cpp b/flang/lib/Optimizer/Dialect/CUF/CUFOps.cpp
index b00c374682922..0446c1db86b16 100644
--- a/flang/lib/Optimizer/Dialect/CUF/CUFOps.cpp
+++ b/flang/lib/Optimizer/Dialect/CUF/CUFOps.cpp
@@ -96,8 +96,8 @@ mlir::LogicalResult cuf::AllocateOp::verify() {
mlir::LogicalResult cuf::DataTransferOp::verify() {
mlir::Type srcTy = getSrc().getType();
mlir::Type dstTy = getDst().getType();
- if (fir::isa_ref_type(srcTy) && fir::isa_ref_type(dstTy) ||
- fir::isa_box_type(srcTy) && fir::isa_box_type(dstTy))
+ if ((fir::isa_ref_type(srcTy) && fir::isa_ref_type(dstTy)) ||
+ (fir::isa_box_type(srcTy) && fir::isa_box_type(dstTy)))
return mlir::success();
return emitOpError("expect src and dst to be both references or descriptors");
}
More information about the flang-commits
mailing list