From afb9d89ffcf2b556c0ccfd63ff484ab178160136 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 19 Jul 2022 21:49:14 -0700 Subject: [PATCH] [flang] Use value instead of getValue (NFC) Flang C++ Style Guide tells us to use x.value() when no presence test is obviously protecting the reference. --- flang/lib/Lower/ConvertExpr.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flang/lib/Lower/ConvertExpr.cpp b/flang/lib/Lower/ConvertExpr.cpp index a45949ed6c930..f91662618a3c8 100644 --- a/flang/lib/Lower/ConvertExpr.cpp +++ b/flang/lib/Lower/ConvertExpr.cpp @@ -2679,9 +2679,9 @@ class ScalarExprLowering { funcSymbolAttr, operands); if (caller.mustSaveResult()) - builder.create( - loc, call.getResult(0), fir::getBase(allocatedResult.getValue()), - arrayResultShape, resultLengths); + builder.create(loc, call.getResult(0), + fir::getBase(allocatedResult.value()), + arrayResultShape, resultLengths); if (allocatedResult) { allocatedResult->match( @@ -4237,10 +4237,10 @@ class ArrayExprLowering { mlir::Value{}); } } else if (isBoundsRemap()) { - auto lbs = lbounds.getValue(); + auto lbs = lbounds.value(); if (lbs.size() > 0) { // Rebox the value with user-specified shift and shape. - auto shapeShiftArgs = flatZip(lbs, ubounds.getValue()); + auto shapeShiftArgs = flatZip(lbs, ubounds.value()); auto shapeTy = fir::ShapeShiftType::get(eleTy.getContext(), lbs.size()); mlir::Value shapeShift = builder.create(loc, shapeTy, shapeShiftArgs);