[llvm] ceaee25 - [Support][unittest] Fix asan failure after D81156
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 17:48:14 PDT 2020
Author: Fangrui Song
Date: 2020-06-09T17:48:00-07:00
New Revision: ceaee253f4f3079d2786697d099e43e9f61f897a
URL: https://github.com/llvm/llvm-project/commit/ceaee253f4f3079d2786697d099e43e9f61f897a
DIFF: https://github.com/llvm/llvm-project/commit/ceaee253f4f3079d2786697d099e43e9f61f897a.diff
LOG: [Support][unittest] Fix asan failure after D81156
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 55ac5d0b69b2..6488bd7698f3 100644
--- a/llvm/unittests/Support/raw_ostream_test.cpp
+++ b/llvm/unittests/Support/raw_ostream_test.cpp
@@ -446,6 +446,7 @@ TEST(raw_ostreamTest, flush_tied_to_stream_on_write) {
// The x remains in the buffer, since it was written after the flush of
// TiedTo.
EXPECT_EQ("rwx", Buffer);
+ TiedTo.tie(nullptr);
// Calling tie with nullptr unties stream.
TiedStream.SetUnbuffered();
More information about the llvm-commits
mailing list