Skip to content

Commit 24f4e64

Browse files
authored
Merge pull request #79885 from DougGregor/remove-region-isolation-assert
[Region analysis] Remove an assertion that doesn't always hold
2 parents 1132934 + 25e1a00 commit 24f4e64

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/SILOptimizer/Analysis/RegionAnalysis.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3752,11 +3752,6 @@ static bool canComputeRegionsForFunction(SILFunction *fn) {
37523752
if (!fn->getASTContext().LangOpts.hasFeature(Feature::RegionBasedIsolation))
37533753
return false;
37543754

3755-
assert(fn->getASTContext().LangOpts.StrictConcurrencyLevel ==
3756-
StrictConcurrency::Complete &&
3757-
"Need strict concurrency to be enabled for RegionBasedIsolation to be "
3758-
"enabled as well");
3759-
37603755
// If this function does not correspond to a syntactic declContext and it
37613756
// doesn't have a parent module, don't check it since we cannot check if a
37623757
// type is sendable.

0 commit comments

Comments
 (0)