[flang-commits] [flang] 0ca23a3 - [Flang]Fix the build with the EXPENSIVE_CHECKS enabled (#162541)

via flang-commits flang-commits at lists.llvm.org
Wed Oct 8 13:35:27 PDT 2025


Author: Alexey Bataev
Date: 2025-10-08T16:35:23-04:00
New Revision: 0ca23a3054cb87dc5a58420fe1f39383d5641eeb

URL: https://github.com/llvm/llvm-project/commit/0ca23a3054cb87dc5a58420fe1f39383d5641eeb
DIFF: https://github.com/llvm/llvm-project/commit/0ca23a3054cb87dc5a58420fe1f39383d5641eeb.diff

LOG: [Flang]Fix the build with the EXPENSIVE_CHECKS enabled (#162541)

Added: 
    

Modified: 
    flang/lib/Optimizer/CodeGen/CodeGen.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Optimizer/CodeGen/CodeGen.cpp b/flang/lib/Optimizer/CodeGen/CodeGen.cpp
index 50603cb86e4a5..4a05cd919abe5 100644
--- a/flang/lib/Optimizer/CodeGen/CodeGen.cpp
+++ b/flang/lib/Optimizer/CodeGen/CodeGen.cpp
@@ -3348,7 +3348,7 @@ struct DoConcurrentSpecifierOpConversion : public fir::FIROpConversion<OpTy> {
                   mlir::ConversionPatternRewriter &rewriter) const override {
 #ifdef EXPENSIVE_CHECKS
     auto uses = mlir::SymbolTable::getSymbolUses(
-        specifier, specifier->getParentOfType<mlir::ModuleOp>());
+        specifier, specifier->template getParentOfType<mlir::ModuleOp>());
 
     // `fir.local|fir.declare_reduction` ops are not supposed to have any uses
     // at this point (i.e. during lowering to LLVM). In case of serialization,


        


More information about the flang-commits mailing list