Skip to content

Commit 98f4c1d

Browse files
authored
[NFC] inline hasDomain into assertion (swiftlang#79755)
1 parent 5f6d2ff commit 98f4c1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/swift/AST/Attr.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -3294,8 +3294,7 @@ class SemanticAvailableAttr final {
32943294
public:
32953295
SemanticAvailableAttr(const AvailableAttr *attr) : attr(attr) {
32963296
assert(attr);
3297-
bool hasDomain = attr->getDomainOrIdentifier().isDomain();
3298-
assert(hasDomain);
3297+
assert(attr->getDomainOrIdentifier().isDomain());
32993298
}
33003299

33013300
const AvailableAttr *getParsedAttr() const { return attr; }

0 commit comments

Comments
 (0)