From bd4762502c5b76285aa3910209ee16401f392229 Mon Sep 17 00:00:00 2001 From: Alex Zinenko Date: Thu, 3 Oct 2019 01:46:39 -0700 Subject: [PATCH] Add parentheses around boolean operators in assert This removes a warning and is generally a good practice. PiperOrigin-RevId: 272613597 --- mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);