mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix and test metadata-to-class mapping.
Swift SVN r3426
This commit is contained in:
@@ -1447,7 +1447,7 @@ llvm::Value *irgen::emitClassHeapMetadataRefForMetatype(IRGenFunction &IGF,
|
||||
auto phi = IGF.Builder.CreatePHI(IGF.IGM.TypeMetadataPtrTy, 2,
|
||||
metatype->getName() + ".class");
|
||||
phi->addIncoming(metatype, origBB);
|
||||
phi->addIncoming(classFromWrapper, origBB);
|
||||
phi->addIncoming(classFromWrapper, wrapBB);
|
||||
|
||||
return phi;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user