Skip to content

Commit af6b24b

Browse files
committed
[embedded] Don't emit metadata references from C++ interop
1 parent c6556d8 commit af6b24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ void IRGenModule::emitSILFunction(SILFunction *f) {
25642564
return;
25652565

25662566
// Type metadata for foreign references is not yet supported on Windows. Bug #76168.
2567-
if (Context.LangOpts.EnableCXXInterop &&
2567+
if (Context.LangOpts.EnableCXXInterop && !Context.LangOpts.hasFeature(Feature::Embedded) &&
25682568
f->getLinkage() == SILLinkage::Public &&
25692569
!Context.LangOpts.Target.isOSWindows())
25702570
noteUseOfMetadataByCXXInterop(IRGen, f, TypeExpansionContext(*f));

0 commit comments

Comments
 (0)