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

Peter Klausler via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 08:51:03 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);
----------------
klausler wrote:

You don't need the `Fortran` prefix, and using it makes this code inconsistent with other namespace usage in the runtime.

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


More information about the llvm-commits mailing list