summaryrefslogtreecommitdiff
path: root/tools/standalone_miri/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/standalone_miri/debug.cpp')
-rw-r--r--tools/standalone_miri/debug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/standalone_miri/debug.cpp b/tools/standalone_miri/debug.cpp
index f0476df7..c49df960 100644
--- a/tools/standalone_miri/debug.cpp
+++ b/tools/standalone_miri/debug.cpp
@@ -18,8 +18,9 @@ DebugSink::DebugSink(::std::ostream& inner):
DebugSink::~DebugSink()
{
m_inner << "\n";
+ m_inner.flush();
}
-bool DebugSink::set_output_file(const ::std::string& s)
+void DebugSink::set_output_file(const ::std::string& s)
{
s_out_file.reset(new ::std::ofstream(s));
}