Merge pull request #39998 from compnerd/async-inheritance

IRGen: initial pass to support `async` inheritance on Windows
This commit is contained in:
Saleem Abdulrasool
2021-11-01 19:59:04 -07:00
committed by GitHub
9 changed files with 138 additions and 12 deletions

View File

@@ -1876,6 +1876,11 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
// witness.
Opts.LazyInitializeProtocolConformances = Triple.isOSBinFormatCOFF();
// PE/COFF cannot deal with the cross-module reference to the
// AsyncFunctionPointer data block. Force the use of indirect
// AsyncFunctionPointer access.
Opts.IndirectAsyncFunctionPointer = Triple.isOSBinFormatCOFF();
if (Args.hasArg(OPT_disable_legacy_type_info)) {
Opts.DisableLegacyTypeInfo = true;
}