File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,11 @@ static void get_subtypes(
52
52
candidate)!=subtypes.end ())
53
53
continue ;
54
54
// get its base class
55
- const irept::subt &bases=to_class_type ((it->second ).type ).bases ();
55
+ const class_typet::basest &bases=
56
+ to_class_type ((it->second ).type ).bases ();
56
57
if (bases.size ()>0 )
57
58
{
58
- const irept &base = bases[0 ];
59
+ const class_typet::baset &base = bases[0 ];
59
60
const irept &base_type=base.find (ID_type);
60
61
assert (base_type.id ()==ID_symbol);
61
62
Original file line number Diff line number Diff line change @@ -386,7 +386,8 @@ void remove_exceptionst::instrument_function_call(
386
386
const irep_idt &callee_id=
387
387
to_symbol_expr (function_call.function ()).get_identifier ();
388
388
389
- if (symbol_table.has_symbol (id2string (callee_id)+EXC_SUFFIX))
389
+ if (symbol_table.has_symbol (id2string (callee_id)+EXC_SUFFIX) &&
390
+ symbol_table.has_symbol (id2string (function_id)+EXC_SUFFIX))
390
391
{
391
392
// we may have an escaping exception
392
393
const symbolt &callee_exc_symbol=
You can’t perform that action at this time.
0 commit comments