Skip to content

Commit

Permalink
Print 'throws' in a more sensible place when dumping function types.
Browse files Browse the repository at this point in the history
Swift SVN r28885
  • Loading branch information
rjmccall committed May 21, 2015
1 parent 55bb9a8 commit 48597a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/AST/ASTDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2601,10 +2601,9 @@ namespace {
printFlag(T->isNoReturn(), "noreturn");
printFlag(T->isAutoClosure(), "autoclosure");
printFlag(T->isNoEscape(), "noescape");
printFlag(T->throws(), "throws");

printRec("input", T->getInput());
if (T->throws())
OS << " throws ";
printRec("output", T->getResult());
}

Expand Down

0 comments on commit 48597a4

Please sign in to comment.