Skip to content

Commit ae7379d

Browse files
authored
Merge pull request diffblue#3931 from tautschnig/deprecation-c++-parser
C++ parser: use optionalt<codet> to avoid deprecated codet constructor [blocks: diffblue#3800]
2 parents 4af7aa1 + d0618c9 commit ae7379d

File tree

2 files changed

+361
-397
lines changed

2 files changed

+361
-397
lines changed

src/cpp/cpp_typecheck_expr.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,6 @@ void cpp_typecheckt::typecheck_expr_main(exprt &expr)
6565
typecheck_expr_explicit_typecast(expr);
6666
else if(expr.id()=="explicit-constructor-call")
6767
typecheck_expr_explicit_constructor_call(expr);
68-
else if(expr.is_nil())
69-
{
70-
#ifdef DEBUG
71-
std::cerr << "E: " << expr.pretty() << '\n';
72-
std::cerr << "cpp_typecheckt::typecheck_expr_main got nil\n";
73-
#endif
74-
UNREACHABLE;
75-
}
7668
else if(expr.id()==ID_code)
7769
{
7870
#ifdef DEBUG

0 commit comments

Comments
 (0)