Skip to content

Commit d0a7414

Browse files
committed
c++, contracts: Add an error check [NFC intended].
1 parent f28f2d9 commit d0a7414

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gcc/cp/contracts.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,6 +2836,9 @@ build_arg_list (tree fndecl)
28362836
void
28372837
start_function_contracts (tree fndecl)
28382838
{
2839+
if (error_operand_p (fndecl))
2840+
return;
2841+
28392842
if (!handle_contracts_p (fndecl))
28402843
return;
28412844

0 commit comments

Comments
 (0)