Add missing #include <exception> for std::terminate It was previously included transitively through some other header, but with recent libc++ versions that's no longer the case. Bug: chromium:1425830 Change-Id: I91aa90e7b4b2d4b02b780b0efef5339d88fbc987 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/71168 Reviewed-by: Shahbaz Youssefi <syoussefi@google.com> Tested-by: Shahbaz Youssefi <syoussefi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Commit-Queue: Shahbaz Youssefi <syoussefi@google.com>
diff --git a/third_party/llvm-10.0/llvm/include/llvm/Demangle/ItaniumDemangle.h b/third_party/llvm-10.0/llvm/include/llvm/Demangle/ItaniumDemangle.h index 376e0ef..14f8102 100644 --- a/third_party/llvm-10.0/llvm/include/llvm/Demangle/ItaniumDemangle.h +++ b/third_party/llvm-10.0/llvm/include/llvm/Demangle/ItaniumDemangle.h
@@ -26,6 +26,7 @@ #include <cstdio> #include <cstdlib> #include <cstring> +#include <exception> #include <numeric> #include <utility>
diff --git a/third_party/llvm-10.0/llvm/include/llvm/Demangle/Utility.h b/third_party/llvm-10.0/llvm/include/llvm/Demangle/Utility.h index 04e1936..972fc24 100644 --- a/third_party/llvm-10.0/llvm/include/llvm/Demangle/Utility.h +++ b/third_party/llvm-10.0/llvm/include/llvm/Demangle/Utility.h
@@ -17,6 +17,7 @@ #include <cstdint> #include <cstdlib> #include <cstring> +#include <exception> #include <iterator> #include <limits>
diff --git a/third_party/llvm-10.0/llvm/lib/Demangle/MicrosoftDemangle.cpp b/third_party/llvm-10.0/llvm/lib/Demangle/MicrosoftDemangle.cpp index c681d6e..7ef7e65 100644 --- a/third_party/llvm-10.0/llvm/lib/Demangle/MicrosoftDemangle.cpp +++ b/third_party/llvm-10.0/llvm/lib/Demangle/MicrosoftDemangle.cpp
@@ -24,6 +24,7 @@ #include <array> #include <cctype> #include <cstdio> +#include <exception> #include <tuple> using namespace llvm;