Skip to content

Commit 60a3a1a

Browse files
committed
[Sema] NFC: Usage llvm::errs() directly in SpaceEngine::dump
1 parent c8ac18d commit 60a3a1a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Sema/TypeCheckSwitchStmt.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,8 +1827,6 @@ void TypeChecker::checkSwitchExhaustiveness(const SwitchStmt *stmt,
18271827
}
18281828

18291829
void SpaceEngine::Space::dump() const {
1830-
SmallString<128> buf;
1831-
llvm::raw_svector_ostream os(buf);
1832-
this->show(os, /*normalize*/false);
1833-
llvm::errs() << buf.str();
1830+
this->show(llvm::errs(), /*normalize*/ false);
1831+
llvm::errs() << '\n';
18341832
}

0 commit comments

Comments
 (0)