Skip to content

Commit 84148c7

Browse files
committed
[SR-7036] Use || instead of && for kind comparison
1 parent 4d9e1b0 commit 84148c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Reflection/TypeRef.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,8 @@ class ReferenceStorageTypeRef : public TypeRef {
668668

669669
static bool classof(const TypeRef *TR) {
670670
auto Kind = TR->getKind();
671-
return (Kind == TypeRefKind::UnownedStorage &&
672-
Kind == TypeRefKind::WeakStorage &&
671+
return (Kind == TypeRefKind::UnownedStorage ||
672+
Kind == TypeRefKind::WeakStorage ||
673673
Kind == TypeRefKind::UnmanagedStorage);
674674
}
675675
};

0 commit comments

Comments
 (0)