Skip to content

Commit e3ca558

Browse files
committed
[Flang] Remove deprecated cast style that snuck in during landing of 435e850
1 parent 91feb13 commit e3ca558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/OpenMP/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ createMapInfoOp(fir::FirOpBuilder &builder, mlir::Location loc,
127127
mlir::DenseIntElementsAttr membersIndex, uint64_t mapType,
128128
mlir::omp::VariableCaptureKind mapCaptureType, mlir::Type retTy,
129129
bool partialMap) {
130-
if (auto boxTy = baseAddr.getType().dyn_cast<fir::BaseBoxType>()) {
130+
if (auto boxTy = llvm::dyn_cast<fir::BaseBoxType>(baseAddr.getType())) {
131131
baseAddr = builder.create<fir::BoxAddrOp>(loc, baseAddr);
132132
retTy = baseAddr.getType();
133133
}

0 commit comments

Comments
 (0)