| ... | @@ -1955,6 +1955,8 @@ static int trans_local_declaration(Context *c, TransScope *scope, const DeclStmt | ... | @@ -1955,6 +1955,8 @@ static int trans_local_declaration(Context *c, TransScope *scope, const DeclStmt |
| 1955 | if (init_node == nullptr) | 1955 | if (init_node == nullptr) |
| 1956 | return ErrorUnexpected; | 1956 | return ErrorUnexpected; |
| 1957 | | 1957 | |
| | 1958 | } else { |
| | 1959 | init_node = trans_create_node(c, NodeTypeUndefinedLiteral); |
| 1958 | } | 1960 | } |
| 1959 | AstNode *type_node = trans_qual_type(c, qual_type, stmt->getLocStart()); | 1961 | AstNode *type_node = trans_qual_type(c, qual_type, stmt->getLocStart()); |
| 1960 | if (type_node == nullptr) | 1962 | if (type_node == nullptr) |