diff --git a/flang/lib/Optimizer/Transforms/AffinePromotion.cpp b/flang/lib/Optimizer/Transforms/AffinePromotion.cpp --- a/flang/lib/Optimizer/Transforms/AffinePromotion.cpp +++ b/flang/lib/Optimizer/Transforms/AffinePromotion.cpp @@ -239,9 +239,8 @@ cmpOp.getPredicate(), rhsAffine.getValue() - lhsAffine.getValue()); if (!constraintPair) return; - integerSet = mlir::IntegerSet::get(dimCount, symCount, - {constraintPair.getValue().first}, - {constraintPair.getValue().second}); + integerSet = mlir::IntegerSet::get( + dimCount, symCount, {constraintPair->first}, {constraintPair->second}); } llvm::Optional> diff --git a/flang/lib/Optimizer/Transforms/ExternalNameConversion.cpp b/flang/lib/Optimizer/Transforms/ExternalNameConversion.cpp --- a/flang/lib/Optimizer/Transforms/ExternalNameConversion.cpp +++ b/flang/lib/Optimizer/Transforms/ExternalNameConversion.cpp @@ -50,8 +50,8 @@ rewriter.startRootUpdate(op); auto callee = op.getCallee(); if (callee) { - auto result = fir::NameUniquer::deconstruct( - callee.getValue().getRootReference().getValue()); + auto result = + fir::NameUniquer::deconstruct(callee->getRootReference().getValue()); if (fir::NameUniquer::isExternalFacingUniquedName(result)) op.setCalleeAttr( SymbolRefAttr::get(op.getContext(), mangleExternalName(result))); @@ -139,7 +139,7 @@ target.addDynamicallyLegalOp([](fir::CallOp op) { if (op.getCallee()) return !fir::NameUniquer::needExternalNameMangling( - op.getCallee().getValue().getRootReference().getValue()); + op.getCallee()->getRootReference().getValue()); return true; });