Skip to content

Commit f4e1c36

Browse files
committed
fix unused vars CI error
1 parent 790e017 commit f4e1c36

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

flang/lib/Optimizer/OpenMP/LowerWorkdistribute.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,9 @@ workdistributeRuntimeCallLower(omp::WorkdistributeOp workdistribute,
612612
emitError(loc, "teams with multiple blocks\n");
613613
return failure();
614614
}
615-
auto *workdistributeBlock = &workdistribute.getRegion().front();
616615
bool changed = false;
617-
omp::TargetOp targetOp;
618616
// Get the target op parent of teams
619-
targetOp = dyn_cast<omp::TargetOp>(teams->getParentOp());
617+
omp::TargetOp targetOp = dyn_cast<omp::TargetOp>(teams->getParentOp());
620618
SmallVector<Operation *> opsToErase;
621619
for (auto &op : workdistribute.getOps()) {
622620
if (isRuntimeCall(&op)) {

0 commit comments

Comments
 (0)