Skip to content

Commit d8936ff

Browse files
committed
Guard a call to dump() in NDEBUG
1 parent ea70aea commit d8936ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/IRGen/GenProto.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,7 +2538,9 @@ void IRGenModule::emitSILWitnessTable(SILWitnessTable *wt) {
25382538
auto sig = nominal->getGenericSignatureOfContext();
25392539
sig->forEachParam([&](GenericTypeParamType *param, bool canonical) {
25402540
if (param->isParameterPack()) {
2541+
#ifndef NDEBUG
25412542
wt->dump();
2543+
#endif
25422544
llvm::report_fatal_error("use of relative protcol witness tables not supported");
25432545
}});
25442546
}

0 commit comments

Comments
 (0)