diff options
| author | gingerBill <bill@gingerbill.org> | 2017-11-09 20:51:13 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-11-09 20:51:13 +0000 |
| commit | 36b0b50ba4c01184389ce0522c47582e45eb8950 (patch) | |
| tree | adc21e8e81410d1fc7d42c69ffb321dabd5e1519 /src/parser.cpp | |
| parent | ac46b2053dec713d11d69d2780619e975721102e (diff) | |
Amend allocation procedures with caller location; Compound literals missing type can determine type in certain cases.
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 4ba465e64..abc556d5c 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2223,6 +2223,9 @@ AstNode *parse_operand(AstFile *f, bool lhs) { return ast_basic_lit(f, token); } + case Token_OpenBrace: + if (!lhs) return parse_literal_value(f, nullptr); + break; case Token_OpenParen: { Token open, close; |