Skip to content

Commit 04a6498

Browse files
mstorsjomemfrob
authored andcommitted
[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 7ffea27 commit 04a6498

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 3 additions & 2 deletions
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)