Skip to content

Commit 2f6b45d

Browse files
committed
AST: Add an assertion to ProtocolConformanceRef::getAbstract()
1 parent 4e6352d commit 2f6b45d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/swift/AST/ProtocolConformanceRef.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ class ProtocolConformanceRef {
140140
}
141141

142142
AbstractConformance *getAbstract() const {
143+
ASSERT(isAbstract());
143144
return Union.get<AbstractConformance *>();
144145
}
145146

0 commit comments

Comments
 (0)