Skip to content

Commit 6127cc2

Browse files
committed
Fix calling convention for unboxFromSwiftValueWithType
1 parent b91f29d commit 6127cc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/runtime/DynamicCast.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ tryCastUnwrappingSwiftValueSource(
435435
{
436436
const Metadata *srcInnerType;
437437
const OpaqueValue *srcInnerValue;
438-
if (swift_unboxFromSwiftValueWithType(srcValue, &srcInnerValue, &srcInnerType)) {
438+
if (swift_unboxFromSwiftValueWithType(srcValue,
439+
reinterpret_cast<OpaqueValue *>(&srcInnerValue), &srcInnerType)) {
439440
return DynamicCastResult::SuccessViaCopy;
440441
}
441442

0 commit comments

Comments
 (0)