[flang-commits] [flang] [flang][runtime] Get rid of warnings in F18 runtime CUDA build. (PR #85488)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Sat Mar 16 08:39:33 PDT 2024


================
@@ -175,7 +175,7 @@ RT_API_ATTRS void ShallowCopy(const Descriptor &to, const Descriptor &from) {
 
 RT_API_ATTRS char *EnsureNullTerminated(
     char *str, std::size_t length, Terminator &terminator) {
-  if (std::memchr(str, '\0', length) == nullptr) {
+  if (Fortran::runtime::memchr(str, '\0', length) == nullptr) {
----------------
klausler wrote:

Just `runtime::` will do, here and in tools.h

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


More information about the flang-commits mailing list