We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2662cad commit 870e7ffCopy full SHA for 870e7ff
src/java_bytecode/java_bytecode_instrument.cpp
@@ -274,16 +274,9 @@ codet java_bytecode_instrumentt::check_null_dereference(
274
const source_locationt &original_loc,
275
const bool assertion_enabled)
276
{
277
- exprt local_expr=expr;
278
- empty_typet voidt;
279
- pointer_typet voidptr(voidt);
280
-
281
- if(local_expr.type()!=voidptr)
282
- local_expr.make_typecast(voidptr);
283
284
const equal_exprt equal_expr(
285
- local_expr,
286
- null_pointer_exprt(voidptr));
+ expr,
+ null_pointer_exprt(to_pointer_type(expr.type())));
287
288
if(throw_runtime_exceptions)
289
return throw_exception(
0 commit comments