File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -359,19 +359,18 @@ void RequirementMachine::dump(llvm::raw_ostream &out) const {
359
359
out << " Requirement machine for " ;
360
360
if (Sig)
361
361
out << Sig;
362
- else if (!Params.empty ()) {
363
- out << " fresh signature <" ;
364
- for (auto paramTy : Params)
365
- out << " " << Type (paramTy);
366
- out << " >" ;
367
- } else {
362
+ else if (!System.getProtocols ().empty ()) {
368
363
auto protos = System.getProtocols ();
369
- assert (!protos.empty ());
370
364
out << " protocols [" ;
371
365
for (auto *proto : protos) {
372
366
out << " " << proto->getName ();
373
367
}
374
368
out << " ]" ;
369
+ } else {
370
+ out << " fresh signature <" ;
371
+ for (auto paramTy : Params)
372
+ out << " " << Type (paramTy);
373
+ out << " >" ;
375
374
}
376
375
out << " \n " ;
377
376
You can’t perform that action at this time.
0 commit comments