Skip to content

Commit 3473108

Browse files
committed
[region-isolation] Make vector asserting since we should never see it.
It can only be in a global variable static initializer list which we do not run on.
1 parent e42b112 commit 3473108

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/SILOptimizer/Analysis/RegionAnalysis.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2461,7 +2461,6 @@ CONSTANT_TRANSLATION(StrongCopyUnmanagedValueInst, Unhandled)
24612461
CONSTANT_TRANSLATION(LoadUnownedInst, Unhandled)
24622462
CONSTANT_TRANSLATION(ValueMetatypeInst, Unhandled)
24632463
CONSTANT_TRANSLATION(ExistentialMetatypeInst, Unhandled)
2464-
CONSTANT_TRANSLATION(VectorInst, Unhandled)
24652464
CONSTANT_TRANSLATION(InitExistentialValueInst, Unhandled)
24662465
CONSTANT_TRANSLATION(InitExistentialMetatypeInst, Unhandled)
24672466
CONSTANT_TRANSLATION(OpenExistentialMetatypeInst, Unhandled)
@@ -2519,6 +2518,9 @@ CONSTANT_TRANSLATION(AssignInst, Asserting)
25192518
CONSTANT_TRANSLATION(AssignByWrapperInst, Asserting)
25202519
CONSTANT_TRANSLATION(AssignOrInitInst, Asserting)
25212520

2521+
// We should never hit this since it can only appear as a final instruction in a
2522+
// global variable static initializer list.
2523+
CONSTANT_TRANSLATION(VectorInst, Asserting)
25222524

25232525
#undef CONSTANT_TRANSLATION
25242526

0 commit comments

Comments
 (0)