Merge pull request #19985 from vinivendra/ast-dump-cleanup

Cleans up calls to print/dump for the AST Dumper
This commit is contained in:
Jordan Rose
2018-10-24 15:22:41 -07:00
committed by GitHub
11 changed files with 97 additions and 115 deletions

View File

@@ -2612,7 +2612,7 @@ static void emitDiagnoseOfUnexpectedEnumCase(SILGenFunction &SGF,
void SILGenFunction::emitSwitchStmt(SwitchStmt *S) {
LLVM_DEBUG(llvm::dbgs() << "emitting switch stmt\n";
S->print(llvm::dbgs());
S->dump(llvm::dbgs());
llvm::dbgs() << '\n');
// If the subject expression is uninhabited, we're already dead.
// Emit an unreachable in place of the switch statement.