Skip to content

Commit a132a37

Browse files
committed
change the logic for when exitops is empty
1 parent cb0a1b0 commit a132a37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Dialect/OpenACC/Transforms/LegalizeDataValues.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ static void replaceAllUsesInUnstructuredComputeRegionWith(
8484
exitOps.push_back(declareExit);
8585
}
8686
if (exitOps.empty())
87-
op.emitError(
88-
"declare enter token must be used by at least one declare exit op");
87+
return;
8988
}
9089

9190
for (auto p : values) {

0 commit comments

Comments
 (0)