Skip to content

Commit 8cd09b3

Browse files
Use read() for value_sett::object_mapt equality
The explicit definition of object_mapt equality was removed recently in pull request #4694 but it seems necessary when compiling with clang which would complain about it not being defined. Should fix #4699
1 parent 7734b53 commit 8cd09b3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pointer-analysis/value_set.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,9 @@ class value_sett
221221

222222
bool operator==(const entryt &other) const
223223
{
224-
return
225-
identifier==other.identifier &&
226-
suffix==other.suffix &&
227-
object_map==other.object_map;
224+
return identifier == other.identifier && suffix == other.suffix &&
225+
(object_map.get_d() == other.object_map.get_d() ||
226+
object_map.read() == other.object_map.read());
228227
}
229228
bool operator!=(const entryt &other) const
230229
{

0 commit comments

Comments
 (0)