diff --git a/mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp b/mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp index a361aaae7a39..a5137efea266 100644 --- a/mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp +++ b/mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp @@ -659,8 +659,9 @@ struct AllocOpLowering : public LLVMLegalizationPattern { "unexpected dynamic offset"); // 0-D memref corner case: they have size 1 ... - assert((type.getRank() == 0 && strides.empty() && sizes.size() == 1) || - (strides.size() == sizes.size()) && "unexpected number of strides"); + assert(((type.getRank() == 0 && strides.empty() && sizes.size() == 1) || + (strides.size() == sizes.size())) && + "unexpected number of strides"); // Create the MemRef descriptor. auto structType = lowering.convertType(type);