Author: Jan Svoboda
Date: 2021-02-08T10:12:51+01:00
New Revision: 63623982e1adb4b7e85f21d00d04dd2f555b79b6

URL: 
https://github.com/llvm/llvm-project/commit/63623982e1adb4b7e85f21d00d04dd2f555b79b6
DIFF: 
https://github.com/llvm/llvm-project/commit/63623982e1adb4b7e85f21d00d04dd2f555b79b6.diff

LOG: [clang][cli] NFC: Mirror CreateFromArgs order in generateCC1CommandLine

Added: 
    

Modified: 
    clang/lib/Frontend/CompilerInvocation.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Frontend/CompilerInvocation.cpp 
b/clang/lib/Frontend/CompilerInvocation.cpp
index 3f8748f83ec0..e131804b11d1 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -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>


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to