[clang][cli] NFC: Mirror CreateFromArgs order in generateCC1CommandLine
authorJan Svoboda <jan_svoboda@apple.com>
Mon, 8 Feb 2021 09:02:08 +0000 (10:02 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Mon, 8 Feb 2021 09:12:51 +0000 (10:12 +0100)
clang/lib/Frontend/CompilerInvocation.cpp

index 3f8748f..e131804 100644 (file)
@@ -3617,11 +3617,11 @@ void CompilerInvocation::generateCC1CommandLine(
 #undef DIAG_OPTION_WITH_MARSHALLING
 #undef OPTION_WITH_MARSHALLING
 
-  GeneratePreprocessorArgs(*PreprocessorOpts, Args, SA, *LangOpts,
-                           FrontendOpts, CodeGenOpts);
   GenerateAnalyzerArgs(*AnalyzerOpts, Args, SA);
   GenerateHeaderSearchArgs(*HeaderSearchOpts, Args, SA);
   GenerateLangArgs(*LangOpts, Args, SA);
+  GeneratePreprocessorArgs(*PreprocessorOpts, Args, SA, *LangOpts,
+                           FrontendOpts, CodeGenOpts);
 }
 
 IntrusiveRefCntPtr<llvm::vfs::FileSystem>