seg-stacks: fix SSA error in codegen