File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -330,15 +330,17 @@ struct LLVM_LIBRARY_VISIBILITY OpaqueExistentialBox
330
330
static constexpr bool isBitwiseTakable = true ;
331
331
static constexpr unsigned numExtraInhabitants =
332
332
swift_getHeapObjectExtraInhabitantCount ();
333
-
333
+
334
334
static void storeExtraInhabitant (Container *dest, int index) {
335
- swift_storeHeapObjectExtraInhabitant ((HeapObject**)&dest->Header .Type ,
336
- index);
335
+ swift_storeHeapObjectExtraInhabitant (
336
+ const_cast <HeapObject **>(
337
+ reinterpret_cast <const HeapObject **>(&dest->Header .Type )),
338
+ index);
337
339
}
338
340
339
341
static int getExtraInhabitantIndex (const Container *src) {
340
- return swift_getHeapObjectExtraInhabitantIndex (
341
- ( HeapObject* const *) &src->Header .Type );
342
+ return swift_getHeapObjectExtraInhabitantIndex (const_cast <HeapObject **>(
343
+ reinterpret_cast < const HeapObject * const *>( &src->Header .Type )) );
342
344
}
343
345
};
344
346
You can’t perform that action at this time.
0 commit comments