diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-02-01 02:00:25 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-02-01 02:00:25 -0700 |
| commit | b3459f64e795118c4c12890ed0fec75638b74a2c (patch) | |
| tree | d5730790d1b61f71a606e30023d68cc36071cce4 /src/analyze.cpp | |
| parent | 6b2e29c6ac58d5f4370828bfa0f54b83d1931a97 (diff) | |
| download | zig-b3459f64e795118c4c12890ed0fec75638b74a2c.tar.gz zig-b3459f64e795118c4c12890ed0fec75638b74a2c.zip | |
parseh understands macros which alias global fn ptr vars
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 8942746e2d..e71c762669 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -29,6 +29,7 @@ static TypeTableEntry *analyze_block_expr(CodeGen *g, ImportTableEntry *import, static TypeTableEntry *resolve_expr_const_val_as_void(CodeGen *g, AstNode *node); static TypeTableEntry *resolve_expr_const_val_as_fn(CodeGen *g, AstNode *node, FnTableEntry *fn); static void detect_top_level_decl_deps(CodeGen *g, ImportTableEntry *import, AstNode *node); +static void analyze_top_level_decls_root(CodeGen *g, ImportTableEntry *import, AstNode *node); static AstNode *first_executing_node(AstNode *node) { switch (node->type) { @@ -1251,6 +1252,7 @@ static void resolve_c_import_decl(CodeGen *g, ImportTableEntry *parent_import, A child_import->importers.append({parent_import, node}); detect_top_level_decl_deps(g, child_import, child_import->root); + analyze_top_level_decls_root(g, child_import, child_import->root); } static void satisfy_dep(CodeGen *g, AstNode *node) { |
