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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-fir-hlfir

Author: None (jeanPerier)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/171983.diff


1 Files Affected:

- (modified) flang/include/flang/Lower/ConvertVariable.h (+2-7) 


``````````diff
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;

``````````

</details>


https://github.com/llvm/llvm-project/pull/171983


More information about the flang-commits mailing list