Add parentheses around boolean operators in an assertion in

Linalg/Transforms/Tiling.cpp.  This fixes a warning.

PiperOrigin-RevId: 257191302
This commit is contained in:
Alex Zinenko 2019-07-09 07:51:17 -07:00 committed by A. Unique TensorFlower
parent 7a2e8726e8
commit 4cabebf04d
1 changed files with 2 additions and 4 deletions

View File

@ -401,10 +401,8 @@ mlir::linalg::tileLinalgOp(LinalgOp op, ArrayRef<Value *> tileSizes,
// 4. Filter the subset of views that need to be promoted.
SmallVector<Value *, 8> filteredViews;
filteredViews.reserve(views.size());
assert(
viewsToPromote.empty() ||
views.size() == viewsToPromote.size() &&
"expected viewsToPromote to be empty or of the same size as view");
assert((viewsToPromote.empty() || views.size() == viewsToPromote.size()) &&
"expected viewsToPromote to be empty or of the same size as view");
for (auto it : llvm::zip(views, viewsToPromote)) {
if (!std::get<1>(it))
continue;