File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -499,7 +499,8 @@ class MetadataReader {
499
499
readInstanceSizeAndAlignmentFromClassMetadata (StoredPointer MetadataAddress) {
500
500
auto superMeta = readMetadata (MetadataAddress);
501
501
if (!superMeta || superMeta->getKind () != MetadataKind::Class)
502
- return {false , 0 , 0 };
502
+ return std::make_tuple (false , 0 , 0 );
503
+
503
504
auto super = cast<TargetClassMetadata<Runtime>>(superMeta);
504
505
505
506
// See swift_initClassMetadata_UniversalStrategy()
@@ -513,17 +514,17 @@ class MetadataReader {
513
514
// Grab the RO-data pointer. This part is not ABI.
514
515
StoredPointer roDataPtr = readObjCRODataPtr (MetadataAddress);
515
516
if (!roDataPtr)
516
- return false ;
517
+ return std::make_tuple ( false , 0 , 0 ) ;
517
518
518
519
auto address = roDataPtr + sizeof (uint32_t ) * 2 ;
519
520
520
521
align = 16 ; // malloc alignment guarantee
521
522
522
523
if (!Reader->readInteger (RemoteAddress (address), &size))
523
- return { false , 0 , 0 } ;
524
+ return std::make_tuple ( false , 0 , 0 ) ;
524
525
}
525
526
526
- return { true , size, align} ;
527
+ return std::make_tuple ( true , size, align) ;
527
528
}
528
529
529
530
// / Given a remote pointer to metadata, attempt to turn it into a type.
You can’t perform that action at this time.
0 commit comments