Skip to content

Commit b069801

Browse files
committed
[clang] [Serialization] Fix swapped PPOpts/ExistingPPOpts parameters. NFC.
The two first parameters of checkPreprocessorOptions are "PPOpts, ExistingPPOpts". All other callers of the function pass them consistently. This avoids confusion when working on the code. Differential Revision: https://reviews.llvm.org/D129277
1 parent dd74d31 commit b069801

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Serialization/ASTReader.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -5171,8 +5171,9 @@ namespace {
51715171
bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts,
51725172
bool Complain,
51735173
std::string &SuggestedPredefines) override {
5174-
return checkPreprocessorOptions(ExistingPPOpts, PPOpts, nullptr, FileMgr,
5175-
SuggestedPredefines, ExistingLangOpts);
5174+
return checkPreprocessorOptions(PPOpts, ExistingPPOpts, /*Diags=*/nullptr,
5175+
FileMgr, SuggestedPredefines,
5176+
ExistingLangOpts);
51765177
}
51775178
};
51785179

0 commit comments

Comments
 (0)