Skip to content

Commit 386157c

Browse files
committed
Schedule pass properly
1 parent 1dfdab5 commit 386157c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/include/flang/Tools/CLOptions.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ inline void createHLFIRToFIRPassPipeline(
345345
pm.addPass(hlfir::createLowerHLFIRIntrinsics());
346346
pm.addPass(hlfir::createBufferizeHLFIR());
347347
pm.addPass(hlfir::createConvertHLFIRtoFIR());
348-
pm.addPass(flangomp::createLowerWorkshare());
348+
addNestedPassToAllTopLevelOperations(pm, flangomp::createLowerWorkshare);
349349
}
350350

351351
/// Create a pass pipeline for handling certain OpenMP transformations needed

0 commit comments

Comments
 (0)