Skip to content

Commit f14b426

Browse files
authored
Merge pull request #68568 from apple/embedded-wmo-via-primaryfiles
[embedded] Detect WMO via .hasPrimaryInputs() instead of -wmo flag presence
2 parents bd3a755 + d2f8530 commit f14b426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
13311331
HadError = true;
13321332
}
13331333

1334-
if (FrontendOpts.InputsAndOutputs.hasPrimaryInputs()) {
1334+
if (!FrontendOpts.InputsAndOutputs.isWholeModule()) {
13351335
Diags.diagnose(SourceLoc(), diag::wmo_with_embedded);
13361336
HadError = true;
13371337
}

0 commit comments

Comments
 (0)