[flang-commits] [flang] 9c5744c - [flang] add missing headers in ConvertVariable.h after #171501 (#171983)

via flang-commits flang-commits at lists.llvm.org
Fri Dec 12 02:30:50 PST 2025


Author: jeanPerier
Date: 2025-12-12T10:30:35Z
New Revision: 9c5744cbc8fb971778c5595bef45d3eb911863c9

URL: https://github.com/llvm/llvm-project/commit/9c5744cbc8fb971778c5595bef45d3eb911863c9
DIFF: https://github.com/llvm/llvm-project/commit/9c5744cbc8fb971778c5595bef45d3eb911863c9.diff

LOG: [flang] add missing headers in ConvertVariable.h after #171501 (#171983)

Missing headers were caught by windows build bots:
-
https://lab.llvm.org/buildbot/#/builders/222/builds/817/steps/6/logs/stdio
-
https://lab.llvm.org/buildbot/#/builders/207/builds/10970/steps/5/logs/stdio

In #171501, I removed IterationSpace.h include from Utils.h, and
IterationSpace.h was itself including SymbolMap.h and FIRBuilder.h that
are required here.

Added: 
    

Modified: 
    flang/include/flang/Lower/ConvertVariable.h

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Lower/ConvertVariable.h b/flang/include/flang/Lower/ConvertVariable.h
index 31f3c72c5c86c..e939d8c88c9f9 100644
--- a/flang/include/flang/Lower/ConvertVariable.h
+++ b/flang/include/flang/Lower/ConvertVariable.h
@@ -18,6 +18,8 @@
 #define FORTRAN_LOWER_CONVERT_VARIABLE_H
 
 #include "flang/Lower/Support/Utils.h"
+#include "flang/Lower/SymbolMap.h"
+#include "flang/Optimizer/Builder/FIRBuilder.h"
 #include "flang/Optimizer/Dialect/FIRAttr.h"
 #include "flang/Semantics/symbol.h"
 #include "mlir/IR/Value.h"
@@ -27,13 +29,6 @@ namespace cuf {
 class DataAttributeAttr;
 }
 
-namespace fir {
-class ExtendedValue;
-class FirOpBuilder;
-class GlobalOp;
-class FortranVariableFlagsAttr;
-} // namespace fir
-
 namespace Fortran {
 namespace semantics {
 class Scope;


        


More information about the flang-commits mailing list