diff --git a/lib/Dialect/AIE/IR/AIEDialect.cpp b/lib/Dialect/AIE/IR/AIEDialect.cpp index 5bfeb2bbcc..2f9ab57f92 100644 --- a/lib/Dialect/AIE/IR/AIEDialect.cpp +++ b/lib/Dialect/AIE/IR/AIEDialect.cpp @@ -531,7 +531,7 @@ void printObjectFifoConsumerTiles(OpAsmPrinter &printer, Operation *op, size_t tileIdx = 0; for (auto tile : tiles) { printer << tile; - if (dimsPerTileAttr && dimsPerTileAttr.size() == tiles.size() && + if (dimsPerTileAttr && tileIdx < dimsPerTileAttr.size() && dimsPerTileAttr[tileIdx] && !dimsPerTileAttr[tileIdx].empty()) { printer << " fromStream "; printer.printStrippedAttrOrType(dimsPerTileAttr[tileIdx]);