Skip to content

Commit 529b435

Browse files
fixup! field_sensitivity::apply handle non-constant index
1 parent c779b95 commit 529b435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goto-symex/field_sensitivity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ exprt field_sensitivityt::apply(
132132
// Expand the array and return `{array[0]; array[1]; ...}[index]`
133133
exprt expanded_array =
134134
get_fields(ns, state, to_ssa_expr(index.array()));
135-
return index_exprt{std::move(expanded_array), l2_index.get()};
135+
return index_exprt{std::move(expanded_array), index.index()};
136136
}
137137
}
138138
}

0 commit comments

Comments
 (0)