[flang] [llvm] [Flang][OpenMP][Runtime] Minor Flang runtime for OpenMP AMDGPU (PR #152631)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 09:47:43 PDT 2025


================
@@ -158,8 +158,8 @@ template <typename STORE, std::size_t minBuffer = 65536> class FileFrame {
       // Avoid passing a null pointer, since it would result in an undefined
       // behavior.
       if (old != nullptr) {
-        std::memcpy(buffer_, old + start_, chunk);
-        std::memcpy(buffer_ + chunk, old, length_ - chunk);
+        Fortran::runtime::memcpy(buffer_, old + start_, chunk);
----------------
agozillon wrote:

Sounds good, will make the alteration in the next update after the other discussions are resolved

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


More information about the llvm-commits mailing list