Skip to content

Commit 0d09424

Browse files
committed
RequirementMachine: Fix rogue debug output when debug flag was disabled
1 parent 517fb45 commit 0d09424

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/AST/RequirementMachine/ConcreteContraction.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ Optional<Type> ConcreteContraction::substTypeParameter(
231231

232232
auto *decl = (*substBaseType)->getAnyNominal();
233233
if (decl == nullptr) {
234-
llvm::dbgs() << "@@@ Not a nominal type: " << *substBaseType << "\n";
234+
if (Debug) {
235+
llvm::dbgs() << "@@@ Not a nominal type: " << *substBaseType << "\n";
236+
}
237+
235238
return None;
236239
}
237240

0 commit comments

Comments
 (0)