[all-commits] [llvm/llvm-project] 55f230: [z.OS] fix strnlen() usage in Context.cpp availabl...

Zibi Sarbinowski via All-commits all-commits at lists.llvm.org
Tue Sep 23 11:08:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55f230f74e1d8de93cac42b6f804ea5e34849e1b
      https://github.com/llvm/llvm-project/commit/55f230f74e1d8de93cac42b6f804ea5e34849e1b
  Author: Zibi Sarbinowski <zibi at ca.ibm.com>
  Date:   2025-09-23 (Tue, 23 Sep 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Context.cpp

  Log Message:
  -----------
  [z.OS] fix strnlen() usage in Context.cpp available on z/OS (#160339)

On z/OS `strnlen()` is not available by default so we use the wrapper
header `zOSSupport.h` to make it visible. This will fix the following
error:

```
clang/lib/AST/ByteCode/Context.cpp:250:16: error: use of undeclared identifier 'strnlen'
  250 |       Result = strnlen(reinterpret_cast<const char *>(Ptr.getRawAddress()), N);
      |                ^~~~~~~
1 error generated.
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list