Skip to content

Commit d320187

Browse files
committed
Linter fixes
1 parent 53e1ca2 commit d320187

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/goto-instrument/goto_program2code.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,9 @@ void goto_program2codet::remove_const(typet &type)
16691669
return;
16701670

16711671
symbolt &symbol=*symbol_table.get_writeable(identifier);
1672-
assert(symbol.is_type);
1672+
INVARIANT(
1673+
symbol.is_type,
1674+
"Symbol "+id2string(identifier)+" should be a type");
16731675

16741676
remove_const(symbol.type);
16751677
}

src/java_bytecode/java_string_library_preprocess.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,8 @@ codet java_string_library_preprocesst::make_object_get_class_code(
15011501

15021502
// > Class class1;
15031503
pointer_typet class_type=
1504-
java_reference_type(symbol_table.lookup("java::java.lang.Class")->get().type);
1504+
java_reference_type(
1505+
symbol_table.lookup("java::java.lang.Class")->get().type);
15051506
symbolt class1_sym=get_fresh_aux_symbol(
15061507
class_type, "class_symbol", "class_symbol", loc, ID_java, symbol_table);
15071508
symbol_exprt class1=class1_sym.symbol_expr();

0 commit comments

Comments
 (0)