[all-commits] [llvm/llvm-project] 2afc8b: Work around a Clang modules build issue.

adrian-prantl via All-commits all-commits at lists.llvm.org
Mon Jan 31 12:03:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2afc8be2faaa83c5f01432798596ebec90767fef
      https://github.com/llvm/llvm-project/commit/2afc8be2faaa83c5f01432798596ebec90767fef
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2022-01-31 (Mon, 31 Jan 2022)

  Changed paths:
    M llvm/lib/Support/Valgrind.cpp

  Log Message:
  -----------
  Work around a Clang modules build issue.

See:
https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/40636/consoleFull#-39956214149ba4694-19c4-4d7e-bec5-911270d8a58c

```
llvm/lib/Support/Valgrind.cpp:37:63: error: missing '#include <stddef.h>'; 'size_t' must be declared before it is used
void llvm::sys::ValgrindDiscardTranslations(const void *Addr, size_t Len) {
                                                              ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/stddef.h:46:23: note: declaration here is not visible
typedef __SIZE_TYPE__ size_t;
                      ^
1 error generated.
```

rdar://88049280




More information about the All-commits mailing list