@@ -305,7 +305,7 @@ void swift_MagicMirrorData_summary(const Metadata *T, String *result) {
305
305
}
306
306
307
307
static std::tuple<const Metadata *, const OpaqueValue *>
308
- getReflectableConformance (const Metadata *T, const OpaqueValue *Value) {
308
+ unwrapExistential (const Metadata *T, const OpaqueValue *Value) {
309
309
// If the value is an existential container, look through it to reflect the
310
310
// contained value.
311
311
// TODO: Should look through existential metatypes too, but it doesn't
@@ -336,7 +336,7 @@ static Mirror reflect(HeapObject *owner,
336
336
const Metadata *T) {
337
337
const Metadata *mirrorType;
338
338
const OpaqueValue *mirrorValue;
339
- std::tie (mirrorType, mirrorValue) = getReflectableConformance (T, value);
339
+ std::tie (mirrorType, mirrorValue) = unwrapExistential (T, value);
340
340
341
341
// Use MagicMirror.
342
342
// Consumes 'owner'.
@@ -510,7 +510,7 @@ static void getEnumMirrorInfo(const OpaqueValue *value,
510
510
// Build a magic mirror. Unconditionally destroy the value at the end.
511
511
const Metadata *mirrorType;
512
512
const OpaqueValue *cMirrorValue;
513
- std::tie (mirrorType, cMirrorValue) = getReflectableConformance (type, value);
513
+ std::tie (mirrorType, cMirrorValue) = unwrapExistential (type, value);
514
514
515
515
OpaqueValue *mirrorValue = const_cast <OpaqueValue*>(cMirrorValue);
516
516
Mirror mirror;
@@ -1097,7 +1097,7 @@ static Mirror ObjC_getMirrorForSuperclass(Class sup,
1097
1097
MirrorReturn swift::swift_reflectAny (OpaqueValue *value, const Metadata *T) {
1098
1098
const Metadata *mirrorType;
1099
1099
const OpaqueValue *cMirrorValue;
1100
- std::tie (mirrorType, cMirrorValue) = getReflectableConformance (T, value);
1100
+ std::tie (mirrorType, cMirrorValue) = unwrapExistential (T, value);
1101
1101
1102
1102
OpaqueValue *mirrorValue = const_cast <OpaqueValue*>(cMirrorValue);
1103
1103
0 commit comments