[flang-commits] [flang] e3ca558 - [Flang] Remove deprecated cast style that snuck in during landing of 435e850ba97ab567a14b6c84d2b27cadb771cb27
via flang-commits
flang-commits at lists.llvm.org
Fri May 10 12:56:14 PDT 2024
Author: agozillon
Date: 2024-05-10T14:56:01-05:00
New Revision: e3ca558ffb1441cb16da7aba021e12c6f110000f
URL: https://github.com/llvm/llvm-project/commit/e3ca558ffb1441cb16da7aba021e12c6f110000f
DIFF: https://github.com/llvm/llvm-project/commit/e3ca558ffb1441cb16da7aba021e12c6f110000f.diff
LOG: [Flang] Remove deprecated cast style that snuck in during landing of 435e850ba97ab567a14b6c84d2b27cadb771cb27
Added:
Modified:
flang/lib/Lower/OpenMP/Utils.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenMP/Utils.cpp b/flang/lib/Lower/OpenMP/Utils.cpp
index b183705c56776..eed63b226133a 100644
--- a/flang/lib/Lower/OpenMP/Utils.cpp
+++ b/flang/lib/Lower/OpenMP/Utils.cpp
@@ -127,7 +127,7 @@ createMapInfoOp(fir::FirOpBuilder &builder, mlir::Location loc,
mlir::DenseIntElementsAttr membersIndex, uint64_t mapType,
mlir::omp::VariableCaptureKind mapCaptureType, mlir::Type retTy,
bool partialMap) {
- if (auto boxTy = baseAddr.getType().dyn_cast<fir::BaseBoxType>()) {
+ if (auto boxTy = llvm::dyn_cast<fir::BaseBoxType>(baseAddr.getType())) {
baseAddr = builder.create<fir::BoxAddrOp>(loc, baseAddr);
retTy = baseAddr.getType();
}
More information about the flang-commits
mailing list