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) {
|
template<typename T> std::string printToString(const T &Value) {
|
||||||
std::string res;
|
std::string res;
|
||||||
llvm::raw_string_ostream OS(res);
|
{
|
||||||
OS.SetBuffered();
|
llvm::raw_string_ostream OS(res);
|
||||||
OS << Value;
|
OS.SetBuffered();
|
||||||
|
OS << Value;
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue