[Demangle] Include <exception> for IWYU
authorFangrui Song <i@maskray.me>
Wed, 19 Jul 2023 05:10:58 +0000 (22:10 -0700)
committerFangrui Song <i@maskray.me>
Wed, 19 Jul 2023 05:10:58 +0000 (22:10 -0700)
The called std::terminate currently gets the declaration transitively
through llvm/Demangle/Utility.h, removing <exception> from Utility.h
would break ItaniumDemangle.cpp.

llvm/lib/Demangle/ItaniumDemangle.cpp

index d81fb65..e3f208f 100644 (file)
@@ -18,6 +18,7 @@
 #include <cstdio>
 #include <cstdlib>
 #include <cstring>
+#include <exception>
 #include <functional>
 #include <utility>