Skip to content

Commit c22ac4d

Browse files
committed
IRGen: Didn't mean to remove this part
1 parent 96218ac commit c22ac4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/IRGen/GenReflection.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,9 @@ llvm::Constant *IRGenModule::getAddrOfCaptureDescriptor(SILFunction &SILFn,
785785
}
786786

787787
void IRGenModule::emitReflectionMetadata(const NominalTypeDecl *Decl) {
788+
if (!IRGen.Opts.EnableReflectionMetadata)
789+
return;
790+
788791
llvm::SetVector<CanType> BuiltinTypes;
789792

790793
emitFieldMetadataRecord(Decl);

0 commit comments

Comments
 (0)