Skip to content

Commit 5f14e7e

Browse files
committed
c++, contracts: fix up pre/post arg type lists.
1 parent ebbffc4 commit 5f14e7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gcc/cp/contracts.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,7 @@ build_contract_condition_function (tree fndecl, bool pre)
15341534
continue;
15351535
}
15361536
*last = build_tree_list (TREE_PURPOSE (arg_type), TREE_VALUE (arg_type));
1537+
last = &TREE_CHAIN (*last);
15371538
}
15381539

15391540
tree orig_fn_value_type = TREE_TYPE (TREE_TYPE (fn));

0 commit comments

Comments
 (0)