From be2cb93ae55e47dd9ece0e35afc0bf054bc4f92d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 9 Jun 2020 17:47:47 -0700 Subject: [PATCH] [Support][unittest] Fix asan failure after D81156 --- unittests/Support/raw_ostream_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/Support/raw_ostream_test.cpp b/unittests/Support/raw_ostream_test.cpp index 55ac5d0b69b..6488bd7698f 100644 --- a/unittests/Support/raw_ostream_test.cpp +++ b/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();