diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-25 14:04:29 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-25 14:04:29 -0700 |
| commit | 4b9e1dd438827c054adc5316a0ccaf62486ac66c (patch) | |
| tree | a7bad779a5941ca3ef7cd759e42bc5877d3c7b6f /src/analyze.cpp | |
| parent | 6db6609df84bedafebc709bc5865e7f18c862cc6 (diff) | |
| download | zig-4b9e1dd438827c054adc5316a0ccaf62486ac66c.tar.gz zig-4b9e1dd438827c054adc5316a0ccaf62486ac66c.zip | |
fix tests and add %% operator test
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 29866ffa38..b43d7dfe30 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -498,7 +498,7 @@ static void resolve_function_proto(CodeGen *g, AstNode *node, FnTableEntry *fn_t // next, loop over the parameters again and compute debug information // and codegen information - bool first_arg_return = handle_is_ptr(return_type); + bool first_arg_return = !fn_proto->skip && handle_is_ptr(return_type); // +1 for maybe making the first argument the return value LLVMTypeRef *gen_param_types = allocate<LLVMTypeRef>(1 + src_param_count); // +1 because 0 is the return type and +1 for maybe making first arg ret val |
