summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2019-02-20 14:56:31 +0000
committerHans Wennborg <hans@hanshq.net>2019-02-20 14:56:31 +0000
commit8df4fbc5a70fd035e66497b964b4bc2779924e61 (patch)
treed13dd49f5eeb3146e7abc921f0caf84bd5098cc6 /llvm/include
parent06e08f0b0ad7038fbfc0db72bfa6ab9836379992 (diff)
downloadbcm5719-llvm-8df4fbc5a70fd035e66497b964b4bc2779924e61.tar.gz
bcm5719-llvm-8df4fbc5a70fd035e66497b964b4bc2779924e61.zip
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>(args)...); ~~~~~^ Try to fix by including <memory> llvm-svn: 354472
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/ADT/Optional.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/Optional.h b/llvm/include/llvm/ADT/Optional.h
index ecddcc2f4d3..b45a74002e1 100644
--- a/llvm/include/llvm/ADT/Optional.h
+++ b/llvm/include/llvm/ADT/Optional.h
@@ -19,6 +19,7 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/type_traits.h"
#include <cassert>
+#include <memory>
#include <new>
#include <utility>
OpenPOWER on IntegriCloud