We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 253eb25 commit 80c7d83Copy full SHA for 80c7d83
flang/lib/Optimizer/CodeGen/FIROpPatterns.cpp
@@ -285,9 +285,8 @@ mlir::Value ConvertFIRToLLVMPattern::computeBoxSize(
285
// 4. The first ancestor that is one of the above.
286
mlir::Block *ConvertFIRToLLVMPattern::getBlockForAllocaInsert(
287
mlir::Operation *op, mlir::Region *parentRegion) const {
288
- if (auto outlineableIface =
289
- mlir::dyn_cast<mlir::omp::OutlineableOpenMPOpInterface>(op))
290
- return outlineableIface.getAllocaBlock();
+ if (auto iface = mlir::dyn_cast<mlir::omp::OutlineableOpenMPOpInterface>(op))
+ return iface.getAllocaBlock();
291
if (auto recipeIface = mlir::dyn_cast<mlir::accomp::RecipeInterface>(op))
292
return recipeIface.getAllocaBlock(*parentRegion);
293
if (auto llvmFuncOp = mlir::dyn_cast<mlir::LLVM::LLVMFuncOp>(op))
0 commit comments