[Mlir-commits] [mlir] 4cc248f - [mlir] Apply ClangTidy readability fix (NFC).
Adrian Kuegel
llvmlistbot at llvm.org
Thu Mar 30 01:43:49 PDT 2023
Author: Adrian Kuegel
Date: 2023-03-30T10:43:15+02:00
New Revision: 4cc248fb9f3fdf01c890a0867b1923c06e8439c7
URL: https://github.com/llvm/llvm-project/commit/4cc248fb9f3fdf01c890a0867b1923c06e8439c7
DIFF: https://github.com/llvm/llvm-project/commit/4cc248fb9f3fdf01c890a0867b1923c06e8439c7.diff
LOG: [mlir] Apply ClangTidy readability fix (NFC).
Added:
Modified:
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
index 5469f4b0e1f79..51754933fe790 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -1432,8 +1432,8 @@ convertOmpTargetData(Operation *op, llvm::IRBuilderBase &builder,
LogicalResult result =
llvm::TypeSwitch<Operation *, LogicalResult>(op)
.Case([&](omp::DataOp dataOp) {
- if (dataOp.getUseDeviceAddr().size() ||
- dataOp.getUseDevicePtr().size())
+ if (!dataOp.getUseDeviceAddr().empty() ||
+ !dataOp.getUseDevicePtr().empty())
return failure();
if (auto ifExprVar = dataOp.getIfExpr())
More information about the Mlir-commits
mailing list