forked from OSchip/llvm-project
Don't write an empty DIAG_USER_MAPPINGS record.
llvm-svn: 118305
This commit is contained in:
parent
0fe92e3fea
commit
b0ca9eb294
|
@ -1451,7 +1451,8 @@ void ASTWriter::WriteUserDiagnosticMappings(const Diagnostic &Diag) {
|
|||
}
|
||||
}
|
||||
|
||||
Stream.EmitRecord(DIAG_USER_MAPPINGS, Record);
|
||||
if (!Record.empty())
|
||||
Stream.EmitRecord(DIAG_USER_MAPPINGS, Record);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue