Skip to content

Commit 83b9916

Browse files
committed
[OSLogOpt] Fix move_value handling.
1 parent 95f46ac commit 83b9916

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SILOptimizer/Mandatory/OSLogOptimization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ static bool isSILValueFoldable(SILValue value) {
313313
return (!silType.isAddress() && !isa<LiteralInst>(definingInst) &&
314314
!isa<LoadBorrowInst>(definingInst) &&
315315
!isa<BeginBorrowInst>(definingInst) &&
316+
!isa<MoveValueInst>(definingInst) &&
316317
!isa<CopyValueInst>(definingInst) &&
317318
(isFoldableIntOrBool(value, astContext) ||
318319
isFoldableString(value, astContext) ||

0 commit comments

Comments
 (0)