Skip to content

Commit 5af5c3a

Browse files
committed
[MLIR] Apply clang-tidy fixes for readability-simplify-boolean-expr in OpenACC.cpp (NFC)
1 parent e502768 commit 5af5c3a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ void OpenACCDialect::initialize() {
173173
//===----------------------------------------------------------------------===//
174174

175175
static bool hasDeviceTypeValues(std::optional<mlir::ArrayAttr> arrayAttr) {
176-
if (arrayAttr && *arrayAttr && arrayAttr->size() > 0)
177-
return true;
178-
return false;
176+
return arrayAttr && *arrayAttr && arrayAttr->size() > 0;
179177
}
180178

181179
static bool hasDeviceType(std::optional<mlir::ArrayAttr> arrayAttr,

0 commit comments

Comments
 (0)