Skip to content

Commit 4915bfa

Browse files
committed
Fix ConstExpr evaluation to handle extend_lifetime.
1 parent cbfe326 commit 4915bfa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SILOptimizer/Utils/ConstExpr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,7 @@ ConstExprFunctionState::evaluateFlowSensitive(SILInstruction *inst) {
17681768
isa<ReleaseValueInst>(inst) || isa<StrongRetainInst>(inst) ||
17691769
isa<StrongReleaseInst>(inst) || isa<DestroyValueInst>(inst) ||
17701770
isa<EndBorrowInst>(inst) || isa<DebugStepInst>(inst) ||
1771+
isa<ExtendLifetimeInst>(inst) ||
17711772
// Skip instrumentation
17721773
isInstrumentation(inst))
17731774
return std::nullopt;

0 commit comments

Comments
 (0)