File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -488,9 +488,10 @@ SymbolicValue ConstExprFunctionState::computeConstantValue(SILValue value) {
488
488
if (auto *bai = dyn_cast<BeginAccessInst>(value))
489
489
return getConstantValue (bai->getOperand ());
490
490
491
- // Look through copy_value and begin_borrow since the interpreter doesn't
492
- // model these memory management instructions.
493
- if (isa<CopyValueInst>(value) || isa<BeginBorrowInst>(value))
491
+ // Look through copy_value, begin_borrow, and move_value since the
492
+ // interpreter doesn't model these memory management instructions.
493
+ if (isa<CopyValueInst>(value) || isa<BeginBorrowInst>(value) ||
494
+ isa<MoveValueInst>(value))
494
495
return getConstantValue (cast<SingleValueInstruction>(value)->getOperand (0 ));
495
496
496
497
// Builtin.RawPointer and addresses have the same representation.
You can’t perform that action at this time.
0 commit comments