Skip to content

Commit c817628

Browse files
committed
Apply clang-tidy fixes for readability-simplify-boolean-expr in TypeConverter.cpp (NFC)
1 parent e43c93d commit c817628

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,7 @@ bool LLVMTypeConverter::canConvertToBarePtr(BaseMemRefType type) {
387387
if (ShapedType::isDynamicStrideOrOffset(stride))
388388
return false;
389389

390-
if (ShapedType::isDynamicStrideOrOffset(offset))
391-
return false;
392-
393-
return true;
390+
return !ShapedType::isDynamicStrideOrOffset(offset);
394391
}
395392

396393
/// Convert a memref type to a bare pointer to the memref element type.

0 commit comments

Comments
 (0)