Add a comment in ASTReader::ReadPragmaDiagnosticMappings that the user bit

is set by the setDiagnosticMapping call.

llvm-svn: 140578
This commit is contained in:
Argyrios Kyrtzidis 2011-09-26 23:06:41 +00:00
parent 01ea1a618d
commit c934ee30bd
1 changed files with 1 additions and 0 deletions

View File

@ -3090,6 +3090,7 @@ void ASTReader::ReadPragmaDiagnosticMappings(DiagnosticsEngine &Diag) {
break; // no more diag/map pairs for this location.
}
diag::Mapping Map = (diag::Mapping)F.PragmaDiagMappings[Idx++];
// The user bit gets set by WritePragmaDiagnosticMappings.
Diag.setDiagnosticMapping(DiagID, Map, Loc);
}
}