We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03833b2 + b27ceb9 commit 9700301Copy full SHA for 9700301
src/pointer-analysis/value_set.h
@@ -221,10 +221,12 @@ class value_sett
221
222
bool operator==(const entryt &other) const
223
{
224
- return
225
- identifier==other.identifier &&
226
- suffix==other.suffix &&
227
- object_map==other.object_map;
+ // Note that the object_map comparison below is duplicating the code of
+ // operator== defined in reference_counting.h because old versions of
+ // clang (3.7 and 3.8) do not resolve the template instantiation correctly
+ return identifier == other.identifier && suffix == other.suffix &&
228
+ (object_map.get_d() == other.object_map.get_d() ||
229
+ object_map.read() == other.object_map.read());
230
}
231
bool operator!=(const entryt &other) const
232
0 commit comments