diff --git a/dace/codegen/targets/framecode.py b/dace/codegen/targets/framecode.py index 5b756b413c..f86c0de3b4 100644 --- a/dace/codegen/targets/framecode.py +++ b/dace/codegen/targets/framecode.py @@ -492,7 +492,7 @@ def dispatch_state(state: SDFGState) -> str: states_topological = list(sdfg.bfs_nodes(sdfg.start_state)) last = states_topological[-1] cft = cflow.GeneralBlock(dispatch_state, None, - [cflow.BasicCFBlock(dispatch_state, s, s is last) for s in states_topological], + [cflow.BasicCFBlock(dispatch_state, None, s is last, s) for s in states_topological], [], [], [], [], False) callsite_stream.write(cft.as_cpp(self, sdfg.symbols), sdfg)