Skip to content

Commit 9e45aa5

Browse files
committed
[NFC] Frontend: IRGen arg parsing gets LangOpts.
Among other things, facilitates using features rather than bespoke flags.
1 parent 627a799 commit 9e45aa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,7 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
29812981
DiagnosticEngine &Diags,
29822982
const FrontendOptions &FrontendOpts,
29832983
const SILOptions &SILOpts,
2984+
const LangOptions &LangOpts,
29842985
StringRef SDKPath,
29852986
StringRef ResourceDir,
29862987
const llvm::Triple &Triple) {
@@ -3694,7 +3695,7 @@ bool CompilerInvocation::parseArgs(
36943695
}
36953696

36963697
if (ParseIRGenArgs(IRGenOpts, ParsedArgs, Diags, FrontendOpts, SILOpts,
3697-
getSDKPath(), SearchPathOpts.RuntimeResourcePath,
3698+
LangOpts, getSDKPath(), SearchPathOpts.RuntimeResourcePath,
36983699
LangOpts.Target)) {
36993700
return true;
37003701
}

0 commit comments

Comments
 (0)