@@ -1224,20 +1224,20 @@ PrivateRecipeOp::createAndPopulate(OpBuilder &builder, Location loc,
12241224 // Populate the init region
12251225 bool needsFree = false ;
12261226 if (failed (createInitRegion (builder, loc, recipe.getInitRegion (), varType,
1227- varName, bounds, needsFree))) {
1227+ varName, bounds, needsFree))) {
12281228 recipe.erase ();
12291229 return std::nullopt ;
12301230 }
12311231
12321232 // Only create destroy region if the allocation needs deallocation
12331233 if (needsFree) {
12341234 // Extract the allocated value from the init block's yield operation
1235- auto yieldOp = cast<acc::YieldOp>(
1236- recipe.getInitRegion ().front ().getTerminator ());
1235+ auto yieldOp =
1236+ cast<acc::YieldOp>( recipe.getInitRegion ().front ().getTerminator ());
12371237 Value allocRes = yieldOp.getOperand (0 );
12381238
12391239 if (failed (createDestroyRegion (builder, loc, recipe.getDestroyRegion (),
1240- varType, allocRes, bounds))) {
1240+ varType, allocRes, bounds))) {
12411241 recipe.erase ();
12421242 return std::nullopt ;
12431243 }
@@ -1296,27 +1296,27 @@ FirstprivateRecipeOp::createAndPopulate(OpBuilder &builder, Location loc,
12961296 // Populate the init region
12971297 bool needsFree = false ;
12981298 if (failed (createInitRegion (builder, loc, recipe.getInitRegion (), varType,
1299- varName, bounds, needsFree))) {
1299+ varName, bounds, needsFree))) {
13001300 recipe.erase ();
13011301 return std::nullopt ;
13021302 }
13031303
13041304 // Populate the copy region
13051305 if (failed (createCopyRegion (builder, loc, recipe.getCopyRegion (), varType,
1306- bounds))) {
1306+ bounds))) {
13071307 recipe.erase ();
13081308 return std::nullopt ;
13091309 }
13101310
13111311 // Only create destroy region if the allocation needs deallocation
13121312 if (needsFree) {
13131313 // Extract the allocated value from the init block's yield operation
1314- auto yieldOp = cast<acc::YieldOp>(
1315- recipe.getInitRegion ().front ().getTerminator ());
1314+ auto yieldOp =
1315+ cast<acc::YieldOp>( recipe.getInitRegion ().front ().getTerminator ());
13161316 Value allocRes = yieldOp.getOperand (0 );
13171317
13181318 if (failed (createDestroyRegion (builder, loc, recipe.getDestroyRegion (),
1319- varType, allocRes, bounds))) {
1319+ varType, allocRes, bounds))) {
13201320 recipe.erase ();
13211321 return std::nullopt ;
13221322 }
0 commit comments