Skip to content

Commit eff658a

Browse files
author
thk123
committed
Add hanlded for constant strings
The data that was missing from the trace was for the storing of the class identifier. This was a constant string assignment step. At some point the handling for filling in the value structure got lost. This reintrodues that change.
1 parent be3f761 commit eff658a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/util/json_expr.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,11 @@ json_objectt json(
347347
to_integer(to_constant_expr(expr), b);
348348
result["data"]=json_stringt(integer2string(b));
349349
}
350+
else if(type.id()==ID_string)
351+
{
352+
result["name"]=json_stringt("string");
353+
result["data"]=json_stringt(expr.get_string(ID_value));
354+
}
350355
else
351356
{
352357
result["name"]=json_stringt("unknown");

0 commit comments

Comments
 (0)