Skip to content

Commit 727f37b

Browse files
Make sure that both the caller and callee have exceptional return vars before instrumenting function calls
1 parent 8feff95 commit 727f37b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/goto-programs/remove_exceptions.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ void remove_exceptionst::instrument_function_call(
332332
const irep_idt &callee_id=
333333
to_symbol_expr(function_call.function()).get_identifier();
334334

335-
if(symbol_table.has_symbol(id2string(callee_id)+EXC_SUFFIX))
335+
if(symbol_table.has_symbol(id2string(callee_id)+EXC_SUFFIX) &&
336+
symbol_table.has_symbol(id2string(function_id)+EXC_SUFFIX))
336337
{
337338
// we may have an escaping exception
338339
const symbolt &callee_exc_symbol=

0 commit comments

Comments
 (0)