Skip to content

Commit 441efe6

Browse files
committed
fixup! [ASTWriter] Do not allocate source location space for module maps used only for textual headers
Change to LHS and RHS
1 parent 9cad088 commit 441efe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Serialization/ASTWriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ GetAffectingModuleMaps(const Preprocessor &PP, Module *RootModule) {
190190
AR_TextualHeader = 0,
191191
AR_ImportOrTextualHeader = 1,
192192
};
193-
auto AssignMostImportant = [](AffectedReason &L, AffectedReason R) {
194-
L = std::max(L, R);
193+
auto AssignMostImportant = [](AffectedReason &LHS, AffectedReason RHS) {
194+
LHS = std::max(LHS, RHS);
195195
};
196196
llvm::DenseMap<FileID, AffectedReason> ModuleMaps;
197197
llvm::DenseMap<const Module *, AffectedReason> ProcessedModules;

0 commit comments

Comments
 (0)