[llvm] 3e14b95 - raw_ostream_test: Add a missing buffer flush
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 26 06:19:08 PDT 2020
Author: Benjamin Kramer
Date: 2020-04-26T15:18:57+02:00
New Revision: 3e14b95d99da94b38c1d0ff1da7e38af34eb8006
URL: https://github.com/llvm/llvm-project/commit/3e14b95d99da94b38c1d0ff1da7e38af34eb8006
DIFF: https://github.com/llvm/llvm-project/commit/3e14b95d99da94b38c1d0ff1da7e38af34eb8006.diff
LOG: raw_ostream_test: Add a missing buffer flush
Added:
Modified:
llvm/unittests/Support/raw_ostream_test.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/raw_ostream_test.cpp b/llvm/unittests/Support/raw_ostream_test.cpp
index 3df01be39937..9f250349b8cb 100644
--- a/llvm/unittests/Support/raw_ostream_test.cpp
+++ b/llvm/unittests/Support/raw_ostream_test.cpp
@@ -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;
}
More information about the llvm-commits
mailing list