diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-26 22:36:20 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-26 22:36:20 +0100 |
| commit | 04535b291310ff53c19fdc96817f2a651b540907 (patch) | |
| tree | 237fe2bb3f824d17f34c5f6dc67e144a761aebb4 /src/parser.cpp | |
| parent | 6667b78c12503de12b3403c461c1d36505537fb2 (diff) | |
Fix constant aliasing for debug information
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index aff7c6bc7..c81827aa3 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1502,6 +1502,10 @@ bool is_semicolon_optional_for_node(AstFile *f, Ast *s) { return false; } + if (build_context.insert_semicolon) { + return true; + } + switch (s->kind) { case Ast_EmptyStmt: case Ast_BlockStmt: |