merge fixup

This commit is contained in:
Joe Groff
2019-04-15 13:32:06 -07:00
parent 5bb22b0b42
commit c58737fb91
3 changed files with 13 additions and 10 deletions

View File

@@ -882,7 +882,7 @@ void IRGenModule::emitStructDecl(StructDecl *st) {
void IRGenModule::emitFuncDecl(FuncDecl *fd) {
// If there's an opaque return type for this function, emit its descriptor.
if (auto opaque = fd->getOpaqueResultTypeDecl()) {
if (!IRGen.tryEnableLazyTypeMetadata(opaque))
if (!IRGen.hasLazyMetadata(opaque))
emitOpaqueTypeDecl(opaque);
}
}