From ccfd145a139c2ac6af522b2c259cbfbf60573740 Mon Sep 17 00:00:00 2001 From: Cyril SIX Date: Mon, 14 Oct 2019 15:49:35 +0200 Subject: Fix for test/regression/struct2.c --- cparser/StructPassing.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cparser/StructPassing.ml') diff --git a/cparser/StructPassing.ml b/cparser/StructPassing.ml index 7bd72808..3aff090e 100644 --- a/cparser/StructPassing.ml +++ b/cparser/StructPassing.ml @@ -75,7 +75,8 @@ let classify_param env ty = Param_flattened ((sz+3)/4, sz, al) (* FIXME - why (sz+3)/4 ? *) else Param_unchanged - | _, _ -> failwith "StructPassing.classify_param SP_split_args32_ref_callee") + | _, _ -> Param_unchanged (* when parsing prototype with incomplete structure definition *) + ) | SP_split_args -> match sizeof env ty, alignof env ty with | Some sz, Some al -> -- cgit