[llvm] 1d133d9 - [Demangle] Include <exception> for IWYU

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 22:11:02 PDT 2023


Author: Fangrui Song
Date: 2023-07-18T22:10:58-07:00
New Revision: 1d133d9e88def5cbe28f594f15293bf946e5d069

URL: https://github.com/llvm/llvm-project/commit/1d133d9e88def5cbe28f594f15293bf946e5d069
DIFF: https://github.com/llvm/llvm-project/commit/1d133d9e88def5cbe28f594f15293bf946e5d069.diff

LOG: [Demangle] Include <exception> for IWYU

The called std::terminate currently gets the declaration transitively
through llvm/Demangle/Utility.h, removing <exception> from Utility.h
would break ItaniumDemangle.cpp.

Added: 
    

Modified: 
    llvm/lib/Demangle/ItaniumDemangle.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Demangle/ItaniumDemangle.cpp b/llvm/lib/Demangle/ItaniumDemangle.cpp
index d81fb65b0f2f8f..e3f208f0adf8dc 100644
--- a/llvm/lib/Demangle/ItaniumDemangle.cpp
+++ b/llvm/lib/Demangle/ItaniumDemangle.cpp
@@ -18,6 +18,7 @@
 #include <cstdio>
 #include <cstdlib>
 #include <cstring>
+#include <exception>
 #include <functional>
 #include <utility>
 


        


More information about the llvm-commits mailing list