forked from OSchip/llvm-project
raw_ostream_test: Add a missing buffer flush
This commit is contained in:
parent
6d7637dc46
commit
3e14b95d99
|
@ -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…
Reference in New Issue