[flang-commits] [flang] [llvm] [LLVM-Flang] Improve the realloc size for the write statement (PR #187662)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Fri Mar 20 05:57:33 PDT 2026


================
@@ -150,7 +150,19 @@ template <typename STORE, std::size_t minBuffer = 65536> class FileFrame {
     if (bytes > size_) {
       char *old{buffer_};
       auto oldSize{size_};
-      size_ = std::max<std::int64_t>(bytes, size_ + minBuffer);
+      std::int64_t minBuffer_{minBuffer}, newSize{size_ + minBuffer_};
----------------
eugeneepshteyn wrote:

Per C++ style guidelines, the variables with ending underscores are class member variables. Could you please rename these local variable to something else?

https://github.com/llvm/llvm-project/pull/187662


More information about the flang-commits mailing list