Skip to content

Commit 32b53f8

Browse files
committed
DeinitDevirtualizer: fix an assert crash when creating an alloc_stack
1 parent 52d6ae3 commit 32b53f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/SILBridgingImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ BridgedInstruction BridgedBuilder::createAllocStack(BridgedType type,
16151615
regularLoc(), type.unbridged(), std::nullopt,
16161616
swift::HasDynamicLifetime_t(hasDynamicLifetime),
16171617
swift::IsLexical_t(isLexical), swift::IsFromVarDecl_t(isFromVarDecl),
1618-
swift::UsesMoveableValueDebugInfo_t(wasMoved))};
1618+
swift::UsesMoveableValueDebugInfo_t(wasMoved), /*skipVarDeclAssert=*/ true)};
16191619
}
16201620

16211621
BridgedInstruction BridgedBuilder::createAllocVector(BridgedValue capacity, BridgedType type) const {

0 commit comments

Comments
 (0)