File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1939,9 +1939,11 @@ std::string expr2ct::convert_constant(
1939
1939
if (src.operands ().size ()!=1 )
1940
1940
return convert_norep (src, precedence);
1941
1941
1942
- if (src.op0 ().id ()==ID_constant)
1942
+ const auto &annotation = to_unary_expr (src).op ();
1943
+
1944
+ if (annotation.id () == ID_constant)
1943
1945
{
1944
- const irep_idt &op_value=src. op0 (). get (ID_value );
1946
+ const irep_idt &op_value = to_constant_expr (annotation). get_value ( );
1945
1947
1946
1948
if (op_value==" INVALID" ||
1947
1949
has_prefix (id2string (op_value), " INVALID-" ) ||
@@ -1951,7 +1953,7 @@ std::string expr2ct::convert_constant(
1951
1953
return convert_norep (src, precedence);
1952
1954
}
1953
1955
else
1954
- return convert_with_precedence (src. op0 () , precedence);
1956
+ return convert_with_precedence (annotation , precedence);
1955
1957
}
1956
1958
}
1957
1959
else if (type.id ()==ID_string)
You can’t perform that action at this time.
0 commit comments