From 2afc8be2faaa83c5f01432798596ebec90767fef Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 31 Jan 2022 11:57:18 -0800 Subject: [PATCH] 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 '; '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 --- llvm/lib/Support/Valgrind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Valgrind.cpp b/llvm/lib/Support/Valgrind.cpp index 3cf41faeb55d..5994656c5c03 100644 --- a/llvm/lib/Support/Valgrind.cpp +++ b/llvm/lib/Support/Valgrind.cpp @@ -12,9 +12,9 @@ // //===----------------------------------------------------------------------===// +#include #include "llvm/Support/Valgrind.h" #include "llvm/Config/config.h" -#include #if HAVE_VALGRIND_VALGRIND_H #include