We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1eeedd3 + 06a1c38 commit 7f22a26Copy full SHA for 7f22a26
stdlib/public/runtime/ExistentialMetadataImpl.h
@@ -386,13 +386,13 @@ struct LLVM_LIBRARY_VISIBILITY NonFixedOpaqueExistentialBox
386
swift_getHeapObjectExtraInhabitantCount();
387
388
static void storeExtraInhabitant(Container *dest, int index) {
389
- swift_storeHeapObjectExtraInhabitant((HeapObject**)&dest->Header.Type,
390
- index);
+ swift_storeHeapObjectExtraInhabitant(
+ (HeapObject**)(uintptr_t)&dest->Header.Type, index);
391
}
392
393
static int getExtraInhabitantIndex(const Container *src) {
394
return swift_getHeapObjectExtraInhabitantIndex(
395
- (HeapObject* const *)&src->Header.Type);
+ (HeapObject* const *)(uintptr_t)&src->Header.Type);
396
397
};
398
0 commit comments