Skip to content

Commit 7fa2016

Browse files
authored
Merge pull request #16357 from xedin/space-engine-dump-gardening
[Sema] NFC: Usage `llvm::errs()` directly in `SpaceEngine::dump`
2 parents c8e0dc2 + 60a3a1a commit 7fa2016

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)