Skip to content

Commit 2767d2a

Browse files
committed
IRGen: Convert an assert to a fatalError
Using resilient witness tables with relative protocol witness tables is not supported.
1 parent 755f260 commit 2767d2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/IRGen/GenProto.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,8 +2561,9 @@ void IRGenModule::emitSILWitnessTable(SILWitnessTable *wt) {
25612561
tableSize = wtableBuilder.getTableSize();
25622562
instantiationFunction = wtableBuilder.buildInstantiationFunction();
25632563
} else {
2564-
assert(!IRGen.Opts.UseRelativeProtocolWitnessTables &&
2565-
"resilient relative protocol witness tables are not supported");
2564+
if (IRGen.Opts.UseRelativeProtocolWitnessTables)
2565+
llvm::report_fatal_error("resilient relative protocol witness tables are not supported");
2566+
25662567
// Build the witness table.
25672568
ResilientWitnessTableBuilder wtableBuilder(*this, wt);
25682569

0 commit comments

Comments
 (0)