Skip to content

Commit 2faa819

Browse files
committed
[silgen] Fix another trivial forUnmanaged -> forObjectRValueWithoutOwnership.
1 parent 5095bd3 commit 2faa819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenBuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ ManagedValue SILGenBuilder::createUncheckedBitCast(SILLocation loc,
707707

708708
// If we have a trivial inst, just return early.
709709
if (isa<UncheckedTrivialBitCastInst>(cast))
710-
return ManagedValue::forUnmanaged(cast);
710+
return ManagedValue::forObjectRValueWithoutOwnership(cast);
711711

712712
// If we perform an unchecked bitwise case, then we are producing a new RC
713713
// identity implying that we need a copy of the casted value to be returned so

0 commit comments

Comments
 (0)