[semantic-arc] Add the assume-parsing-unqualified-ownership-sil argument ath forces the Parser to assume that all parsed code is unqualified. This overrides the parser ownership heuristic.

This commit is contained in:
Michael Gottesman
2016-10-27 09:03:41 -07:00
parent a3ee41c5fc
commit b038a91b8f
5 changed files with 20 additions and 1 deletions

View File

@@ -1153,6 +1153,8 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
Opts.DisableSILPartialApply |=
Args.hasArg(OPT_disable_sil_partial_apply);
Opts.EnableSILOwnership |= Args.hasArg(OPT_enable_sil_ownership);
Opts.AssumeUnqualifiedOwnershipWhenParsing
|= Args.hasArg(OPT_assume_parsing_unqualified_ownership_sil);
if (Args.hasArg(OPT_debug_on_sil)) {
// Derive the name of the SIL file for debugging from