diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-02-03 19:10:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-02-03 19:10:02 -0700 |
| commit | 5c310f43432ec723f8b7d449313c1ea20f1f2d78 (patch) | |
| tree | f9921998c3a3b449ae1da353ef038bd6881cd26f /src/analyze.cpp | |
| parent | c3123158b72d70444fa4cbe134b375c7029a4b46 (diff) | |
| download | zig-5c310f43432ec723f8b7d449313c1ea20f1f2d78.tar.gz zig-5c310f43432ec723f8b7d449313c1ea20f1f2d78.zip | |
skip analyzing parameters of invalid function call
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 69378aee09..1b0b4a131b 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -4147,12 +4147,6 @@ static TypeTableEntry *analyze_fn_call_expr(CodeGen *g, ImportTableEntry *import add_node_error(g, fn_ref_expr, buf_sprintf("no function named '%s' in '%s'", buf_ptr(name), buf_ptr(&bare_struct_type->name))); - // still analyze the parameters, even though we don't know what to expect - for (int i = 0; i < node->data.fn_call_expr.params.length; i += 1) { - AstNode *child = node->data.fn_call_expr.params.at(i); - analyze_expression(g, import, context, nullptr, child); - } - return g->builtin_types.entry_invalid; } } else if (struct_type->id == TypeTableEntryIdInvalid) { |
