Skip to content

Commit 9b876fd

Browse files
authored
Merge pull request #79957 from eeckstein/revert-assert
Revert "IRGen: convert two `assert`s to `ASSERT` to check the conditions also in a release-built compiler"
2 parents 68876a6 + 5fbaf0f commit 9b876fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/IRGen/Linking.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ class LinkEntity {
11231123

11241124
static LinkEntity forProtocolWitnessTable(const ProtocolConformance *C) {
11251125
if (isEmbedded(C)) {
1126-
ASSERT(C->getProtocol()->requiresClass());
1126+
assert(C->getProtocol()->requiresClass());
11271127
}
11281128

11291129
LinkEntity entity;

lib/IRGen/GenProto.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3752,7 +3752,7 @@ llvm::Value *irgen::emitWitnessTableRef(IRGenFunction &IGF,
37523752

37533753
// In Embedded Swift, only class-bound wtables are allowed.
37543754
if (srcType->getASTContext().LangOpts.hasFeature(Feature::Embedded)) {
3755-
ASSERT(proto->requiresClass());
3755+
assert(proto->requiresClass());
37563756
}
37573757

37583758
assert(Lowering::TypeConverter::protocolRequiresWitnessTable(proto)

0 commit comments

Comments
 (0)