From: Hans Wennborg Date: Wed, 20 Feb 2019 14:56:31 +0000 (+0000) Subject: Speculative buildfix for Mac X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45dfd1ce86a799b4f5f643aa27856b8c895b3025;p=llvm Speculative buildfix for Mac Our builds were failing with FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/ARMBuildAttrs.cpp.o [..] In file included from /b/c/b/ToTMac/src/third_party/llvm/lib/Support/ARMBuildAttrs.cpp:9: In file included from /b/c/b/ToTMac/src/third_party/llvm/include/llvm/ADT/StringRef.h:12: In file included from /b/c/b/ToTMac/src/third_party/llvm/include/llvm/ADT/STLExtras.h:19: /b/c/b/ToTMac/src/third_party/llvm/include/llvm/ADT/Optional.h:88:25: error: no member named 'addressof' in namespace 'std' ::new ((void *)std::addressof(value)) T(std::forward(args)...); ~~~~~^ Try to fix by including git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354472 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h index ecddcc2f4d3..b45a74002e1 100644 --- a/include/llvm/ADT/Optional.h +++ b/include/llvm/ADT/Optional.h @@ -19,6 +19,7 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/type_traits.h" #include +#include #include #include