Skip to content

Commit cedceae

Browse files
smowtontautschnig
authored andcommitted
Ensure ssa_expr's l1-identifier is consistent with its identifier
The new cases for ssa-expressions describing members or indices didn't contribute to the l1-id as they ought to.
1 parent 4714c4e commit cedceae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/ssa_expr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ static void build_ssa_identifier_rec(
3232
build_ssa_identifier_rec(member.struct_op(), l0, l1, l2, os, l1_object_os);
3333

3434
os << '.' << member.get_component_name();
35+
l1_object_os << '.' << member.get_component_name();
3536
}
3637
else if(expr.id()==ID_index)
3738
{
@@ -41,6 +42,7 @@ static void build_ssa_identifier_rec(
4142

4243
const mp_integer idx = numeric_cast_v<mp_integer>(index.index());
4344
os << '[' << idx << ']';
45+
l1_object_os << '[' << idx << ']';
4446
}
4547
else if(expr.id()==ID_symbol)
4648
{

0 commit comments

Comments
 (0)