Skip to content

Commit

Permalink
Update lib/Dialect/AIE/Transforms/AIEObjectFifoStatefulTransform.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
AndraBisca and github-actions[bot] authored Oct 30, 2024
1 parent de08230 commit 07349b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<LockOp>(
Expand Down

0 comments on commit 07349b3

Please sign in to comment.