summaryrefslogtreecommitdiff
path: root/flang-rt/lib/runtime/array-constructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flang-rt/lib/runtime/array-constructor.cpp')
-rw-r--r--flang-rt/lib/runtime/array-constructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/flang-rt/lib/runtime/array-constructor.cpp b/flang-rt/lib/runtime/array-constructor.cpp
index 858fac7bf2b3..9838c69ff1f9 100644
--- a/flang-rt/lib/runtime/array-constructor.cpp
+++ b/flang-rt/lib/runtime/array-constructor.cpp
@@ -173,7 +173,7 @@ void RTDEF(PushArrayConstructorSimpleScalar)(
AllocateOrReallocateVectorIfNeeded(vector, terminator, to.Elements(), 1);
SubscriptValue subscript[1]{
to.GetDimension(0).LowerBound() + vector.nextValuePosition};
- std::memcpy(to.Element<char>(subscript), from, to.ElementBytes());
+ runtime::memcpy(to.Element<char>(subscript), from, to.ElementBytes());
++vector.nextValuePosition;
}