From e5a1ccbf254e2e44830fde3d83357c06b814f881 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 29 Jul 2022 21:18:41 -0700 Subject: [PATCH] Use value instead of getValue (NFC) --- clang/lib/Sema/Scope.cpp | 2 +- clang/lib/Sema/SemaRISCVVectorLookup.cpp | 2 +- mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp | 2 +- .../Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/lib/Sema/Scope.cpp b/clang/lib/Sema/Scope.cpp index 69120cf64434..d27de34f3977 100644 --- a/clang/lib/Sema/Scope.cpp +++ b/clang/lib/Sema/Scope.cpp @@ -160,7 +160,7 @@ void Scope::applyNRVO() { return; if (*NRVO && isDeclScope(*NRVO)) - NRVO.getValue()->setNRVOVariable(true); + NRVO.value()->setNRVOVariable(true); // It's necessary to propagate NRVO candidate to the parent scope for cases // when the parent scope doesn't contain a return statement. diff --git a/clang/lib/Sema/SemaRISCVVectorLookup.cpp b/clang/lib/Sema/SemaRISCVVectorLookup.cpp index 2d58008fcdac..63194b7b2e36 100644 --- a/clang/lib/Sema/SemaRISCVVectorLookup.cpp +++ b/clang/lib/Sema/SemaRISCVVectorLookup.cpp @@ -115,7 +115,7 @@ static QualType RVVType2Qual(ASTContext &Context, const RVVType *Type) { llvm_unreachable("Unhandled type."); } if (Type->isVector()) - QT = Context.getScalableVectorType(QT, Type->getScale().getValue()); + QT = Context.getScalableVectorType(QT, Type->getScale().value()); if (Type->isConstant()) QT = Context.getConstType(QT); diff --git a/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp b/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp index 56ce6b85ba87..4c5fbf98cdf0 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp @@ -235,7 +235,7 @@ FailureOr mlir::linalg::promoteSubviewAsNewBuffer( getConstantUpperBoundForIndex(materializedSize); size = failed(upperBound) ? materializedSize - : b.create(loc, upperBound.getValue()); + : b.create(loc, upperBound.value()); } LLVM_DEBUG(llvm::dbgs() << "Extracted tightest: " << size << "\n"); fullSizes.push_back(size); diff --git a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp index 5dcbd00201a9..34c532311fa4 100644 --- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp +++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp @@ -973,7 +973,7 @@ convertOmpSimdLoop(Operation &opInst, llvm::IRBuilderBase &builder, llvm::ConstantInt *simdlen = nullptr; if (llvm::Optional simdlenVar = loop.simdlen()) - simdlen = builder.getInt64(simdlenVar.getValue()); + simdlen = builder.getInt64(simdlenVar.value()); ompBuilder->applySimd(loopInfo, simdlen);