From 07349b356c353c97e33a4a3766e9c6a2b2d9ea66 Mon Sep 17 00:00:00 2001 From: Andra Bisca Date: Wed, 30 Oct 2024 21:36:23 +0100 Subject: [PATCH] Update lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp b/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp index 490b786681..9dfd54b59b 100644 --- a/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp +++ b/lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp @@ -329,7 +329,9 @@ struct AIEObjectFifoStatefulTransformPass } } else { // create corresponding aie2 locks - auto initValues = op.getInitValues().has_value() ? op.getInitValues().value().size() : 0; + auto initValues = op.getInitValues().has_value() + ? op.getInitValues().value().size() + : 0; int prodLockID = lockAnalysis.getLockID(creation_tile); assert(prodLockID >= 0 && "No more locks to allocate!"); auto prodLock = builder.create(