Add missing #include in LLVM 16 Cherry pick of https://llvm.googlesource.com/llvm-project/+/e62d0e1520e9eb3974b5d766100bf2be39a934d8 Compilation error happens when building Swiftshader for chromium: inclusion of <type_traits> is needed for std::is_pod Bug: b/272710814 Change-Id: I26f46d6a95bc0901d1096e5eca8728a4e416b053 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/71408 Kokoro-Result: kokoro <noreply+kokoro@google.com> Commit-Queue: Jean-François Geyelin <jif@google.com> Tested-by: Jean-François Geyelin <jif@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
diff --git a/third_party/llvm-16.0/llvm/include/llvm/Demangle/ItaniumDemangle.h b/third_party/llvm-16.0/llvm/include/llvm/Demangle/ItaniumDemangle.h index 0dd49ea..121eae1 100644 --- a/third_party/llvm-16.0/llvm/include/llvm/Demangle/ItaniumDemangle.h +++ b/third_party/llvm-16.0/llvm/include/llvm/Demangle/ItaniumDemangle.h
@@ -27,6 +27,7 @@ #include <cstring> #include <limits> #include <new> +#include <type_traits> #include <utility> DEMANGLE_NAMESPACE_BEGIN