[PATCH] D129277: [clang] [Serialization] Fix swapped PPOpts/ExistingPPOpts parameters. NFC.
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 7 04:38:59 PDT 2022
mstorsjo created this revision.
mstorsjo added reviewers: aaron.ballman, rnk, shafik.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D129277
Files:
clang/lib/Serialization/ASTReader.cpp
Index: clang/lib/Serialization/ASTReader.cpp
===================================================================
--- clang/lib/Serialization/ASTReader.cpp
+++ clang/lib/Serialization/ASTReader.cpp
@@ -5171,7 +5171,7 @@
bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts,
bool Complain,
std::string &SuggestedPredefines) override {
- return checkPreprocessorOptions(ExistingPPOpts, PPOpts, nullptr, FileMgr,
+ return checkPreprocessorOptions(PPOpts, ExistingPPOpts, nullptr, FileMgr,
SuggestedPredefines, ExistingLangOpts);
}
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129277.442864.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220707/cdefd098/attachment.bin>
More information about the cfe-commits
mailing list