File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
clang/lib/Analysis/FlowSensitive Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ static bool areEquivalentIndirectionValues(const Value &Val1,
27
27
}
28
28
29
29
bool areEquivalentValues (const Value &Val1, const Value &Val2) {
30
+ if (&Val1 == &Val2) return true ;
31
+ if (Val1.getKind () != Val2.getKind ()) return false ;
30
32
// If values are distinct and have properties, we don't consider them equal,
31
33
// leaving equality up to the user model.
32
- return &Val1 == &Val2 ||
33
- (Val1.getKind () == Val2.getKind () &&
34
- (Val1.properties ().empty () && Val2.properties ().empty ()) &&
35
- (isa<TopBoolValue>(&Val1) ||
36
- areEquivalentIndirectionValues (Val1, Val2)));
34
+ if (!Val1.properties ().empty () || !Val2.properties ().empty ()) return false ;
35
+ if (isa<TopBoolValue>(&Val1)) return true ;
36
+ return areEquivalentIndirectionValues (Val1, Val2);
37
37
}
38
38
39
39
raw_ostream &operator <<(raw_ostream &OS, const Value &Val) {
You can’t perform that action at this time.
0 commit comments