fix a missing gc root in codegen