diff options
author | JOE1994 <joseph942010@gmail.com> | 2024-09-13 19:34:30 -0400 |
---|---|---|
committer | JOE1994 <joseph942010@gmail.com> | 2024-09-13 19:55:44 -0400 |
commit | 459a82e6890ff41e30d486f36c8c7ec22628bb7a (patch) | |
tree | 0e607c61c5a5105d3f6126546582a64dee5ca723 /llvm/unittests/IR/ModuleSummaryIndexTest.cpp | |
parent | c010b72e9b4e3b1ae7467eb86102fc43c338fe19 (diff) | |
download | llvm-459a82e6890ff41e30d486f36c8c7ec22628bb7a.zip llvm-459a82e6890ff41e30d486f36c8c7ec22628bb7a.tar.gz llvm-459a82e6890ff41e30d486f36c8c7ec22628bb7a.tar.bz2 |
[llvm][unittests] Don't call raw_string_ostream::flush() (NFC)
raw_string_ostream::flush() is essentially a no-op (also specified in docs).
Don't call it in tests that aren't meant to test 'raw_string_ostream' itself.
p.s. remove a few redundant calls to raw_string_ostream::str()
Diffstat (limited to 'llvm/unittests/IR/ModuleSummaryIndexTest.cpp')
-rw-r--r-- | llvm/unittests/IR/ModuleSummaryIndexTest.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/unittests/IR/ModuleSummaryIndexTest.cpp b/llvm/unittests/IR/ModuleSummaryIndexTest.cpp index f716a04..aa136af 100644 --- a/llvm/unittests/IR/ModuleSummaryIndexTest.cpp +++ b/llvm/unittests/IR/ModuleSummaryIndexTest.cpp @@ -45,7 +45,6 @@ TEST(ModuleSummaryIndexTest, MemProfSummaryPrinting) { for (auto &AI : AllocSummary->allocs()) OS << "\n" << AI; - OS.flush(); EXPECT_EQ(Data, R"( Callee: 23 Clones: 0 StackIds: 2, 3 Callee: 23 Clones: 0 StackIds: 2, 4 |