Skip to content

Commit 3c85341

Browse files
committed
code_deadt::check: to_symbol_expr requires a symbol_exprt
The error message would fail to print as it uses a conversion that is invalid for the very reason that the error message wants to print.
1 parent 1de6c23 commit 3c85341

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/util/std_code.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,7 @@ class code_deadt:public codet
493493
DATA_CHECK(
494494
vm,
495495
code.op0().id() == ID_symbol,
496-
"removing a non-symbol: " +
497-
id2string(to_symbol_expr(code.op0()).get_identifier()) + "from scope");
496+
"removing a non-symbol: " + id2string(code.op0().id()) + "from scope");
498497
}
499498

500499
protected:

0 commit comments

Comments
 (0)