aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorYoungsuk Kim <youngsuk.kim@hpe.com>2024-09-19 17:00:44 -0500
committerYoungsuk Kim <youngsuk.kim@hpe.com>2024-09-19 17:18:10 -0500
commit7db641af13670aa1f1ecd3106eda3ce447afd752 (patch)
tree46f904c260518e6e5d24699b8a18bd6db642b102 /clang/lib/Basic/Module.cpp
parent079f31c11fda00fe30e10f90fff72fa396470174 (diff)
downloadllvm-7db641af13670aa1f1ecd3106eda3ce447afd752.zip
llvm-7db641af13670aa1f1ecd3106eda3ce447afd752.tar.gz
llvm-7db641af13670aa1f1ecd3106eda3ce447afd752.tar.bz2
[clang] Don't call raw_string_ostream::flush() (NFC)
Don't call raw_string_ostream::flush(), which is essentially a no-op. As specified in the docs, raw_string_ostream is always unbuffered
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
-rw-r--r--clang/lib/Basic/Module.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Basic/Module.cpp b/clang/lib/Basic/Module.cpp
index 90b7b0d..fee372b 100644
--- a/clang/lib/Basic/Module.cpp
+++ b/clang/lib/Basic/Module.cpp
@@ -252,7 +252,6 @@ std::string Module::getFullModuleName(bool AllowStringLiterals) const {
llvm::raw_string_ostream Out(Result);
printModuleId(Out, Names.rbegin(), Names.rend(), AllowStringLiterals);
- Out.flush();
return Result;
}