Serialization: Skip check in WritePragmaDiagnosticMappings, NFC

The record is never empty, since we always serialize the initial state.
Skip the check.

llvm-svn: 300021
This commit is contained in:
Duncan P. N. Exon Smith 2017-04-12 02:31:17 +00:00
parent 57d49236cc
commit f2435b9574
1 changed files with 1 additions and 2 deletions

View File

@ -2904,8 +2904,7 @@ void ASTWriter::WritePragmaDiagnosticMappings(const DiagnosticsEngine &Diag,
}
}
if (!Record.empty())
Stream.EmitRecord(DIAG_PRAGMA_MAPPINGS, Record);
Stream.EmitRecord(DIAG_PRAGMA_MAPPINGS, Record);
}
//===----------------------------------------------------------------------===//