Skip to content

Commit 3acdc09

Browse files
committed
[region-isolation] Add support for test_specification_inst.
1 parent ce32a8d commit 3acdc09

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/SILOptimizer/Analysis/RegionAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2360,6 +2360,7 @@ CONSTANT_TRANSLATION(EndApplyInst, Ignored)
23602360
CONSTANT_TRANSLATION(AbortApplyInst, Ignored)
23612361
CONSTANT_TRANSLATION(DebugStepInst, Ignored)
23622362
CONSTANT_TRANSLATION(IncrementProfilerCounterInst, Ignored)
2363+
CONSTANT_TRANSLATION(TestSpecificationInst, Ignored)
23632364

23642365
//===---
23652366
// Require
@@ -2455,7 +2456,6 @@ CONSTANT_TRANSLATION(AssignInst, Unhandled)
24552456
CONSTANT_TRANSLATION(AssignByWrapperInst, Unhandled)
24562457
CONSTANT_TRANSLATION(AssignOrInitInst, Unhandled)
24572458
CONSTANT_TRANSLATION(MarkFunctionEscapeInst, Unhandled)
2458-
CONSTANT_TRANSLATION(TestSpecificationInst, Unhandled)
24592459
CONSTANT_TRANSLATION(PackElementSetInst, Unhandled)
24602460

24612461
//===---

test/Concurrency/transfernonsendable_instruction_matching.sil

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,3 +1289,10 @@ bb0:
12891289
return %9999 : $()
12901290
}
12911291

1292+
sil [ossa] @test_specification_test : $@async @convention(thin) () -> () {
1293+
bb0:
1294+
specify_test "test_specification_parsing Vs @function[4].trace[0] howdy"
1295+
%9999 = tuple ()
1296+
return %9999 : $()
1297+
}
1298+

0 commit comments

Comments
 (0)