diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-25 21:49:32 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-25 21:49:32 -0500 |
| commit | 6aac423964d10f9d884877a158f9604f7547b742 (patch) | |
| tree | 34a581d73bf5e099158ae0f656e9f9827bfe7abe /src/parser.cpp | |
| parent | 357f42da6c2f158fff2afa28a56b7e0e7a8a5963 (diff) | |
| download | zig-6aac423964d10f9d884877a158f9604f7547b742.tar.gz zig-6aac423964d10f9d884877a158f9604f7547b742.zip | |
split IrInstruction into IrInst, IrInstSrc, IrInstGen
This makes it so that less memory is used for IR instructions, as well
as catching bugs when one expected one kind of instruction and received
the other.
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 0054c0a0c6..a4dc324b2f 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -147,7 +147,7 @@ static void ast_invalid_token_error(ParseContext *pc, Token *token) { } static AstNode *ast_create_node_no_line_info(ParseContext *pc, NodeType type) { - AstNode *node = allocate<AstNode>(1); + AstNode *node = allocate<AstNode>(1, "AstNode"); node->type = type; node->owner = pc->owner; return node; |
