mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
raw_ostream_test: Add a missing buffer flush
This commit is contained in:
parent
2f937465a7
commit
12b7379794
@ -18,9 +18,11 @@ namespace {
|
||||
|
||||
template<typename T> std::string printToString(const T &Value) {
|
||||
std::string res;
|
||||
llvm::raw_string_ostream OS(res);
|
||||
OS.SetBuffered();
|
||||
OS << Value;
|
||||
{
|
||||
llvm::raw_string_ostream OS(res);
|
||||
OS.SetBuffered();
|
||||
OS << Value;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user