Skip to content

Commit 3ad20f6

Browse files
committed
Schedule pass properly
1 parent 7402e03 commit 3ad20f6

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
@@ -354,7 +354,7 @@ inline void createHLFIRToFIRPassPipeline(
354354
pm.addPass(hlfir::createLowerHLFIRIntrinsics());
355355
pm.addPass(hlfir::createBufferizeHLFIR());
356356
pm.addPass(hlfir::createConvertHLFIRtoFIR());
357-
pm.addPass(flangomp::createLowerWorkshare());
357+
addNestedPassToAllTopLevelOperations(pm, flangomp::createLowerWorkshare);
358358
}
359359

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

0 commit comments

Comments
 (0)