diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-02-14 16:24:43 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-02-14 16:24:43 -0500 |
| commit | 9fa35adbd4772f55e3e43dd7cc69823415661153 (patch) | |
| tree | 3b678df3295a336401543d072d5d7e01ba26aed7 /src/ir.cpp | |
| parent | 629f134d3805f99938f59a6ee7f6598591abc9d7 (diff) | |
| download | zig-9fa35adbd4772f55e3e43dd7cc69823415661153.tar.gz zig-9fa35adbd4772f55e3e43dd7cc69823415661153.zip | |
fix sometimes not type checking function parameters
closes #774
regression introduced in cfb2c676925d77887e46631dcafa783e6c65e61d
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 2bb40c7e15..8f6317096c 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -6727,8 +6727,8 @@ static ConstCastOnly types_match_const_cast_only(IrAnalyze *ira, TypeTableEntry result.id = ConstCastResultIdFnReturnType; result.data.return_type = allocate_nonzero<ConstCastOnly>(1); *result.data.return_type = child; + return result; } - return result; } if (expected_type->data.fn.fn_type_id.param_count != actual_type->data.fn.fn_type_id.param_count) { result.id = ConstCastResultIdFnArgCount; |
