Fix AST for C generator