From 9fa35adbd4772f55e3e43dd7cc69823415661153 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 14 Feb 2018 16:24:43 -0500 Subject: fix sometimes not type checking function parameters closes #774 regression introduced in cfb2c676925d77887e46631dcafa783e6c65e61d --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir.cpp') 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(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; -- cgit v1.2.3