Skip to content

Commit 50697a7

Browse files
committed
[Runtime] Guard ReflectionMirror's vw_destroy call to avoid emitting it when +0 is enabled.
rdar://problem/20356017
1 parent 29eb740 commit 50697a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/ReflectionMirror.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ auto call(OpaqueValue *passedValue, const Metadata *T, const Metadata *passedTyp
529529
impl->type = type;
530530
impl->value = value;
531531
auto result = f(impl);
532-
T->vw_destroy(passedValue);
532+
SWIFT_CC_PLUSONE_GUARD(T->vw_destroy(passedValue));
533533
return result;
534534
};
535535

0 commit comments

Comments
 (0)