From 60f7684881f9f6bc779e91212aea89d9afc723dd Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 5 Nov 2010 22:20:49 +0000 Subject: [PATCH] Don't write an empty DIAG_USER_MAPPINGS record. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118305 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Serialization/ASTWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index a5977f5cfe..deb6c87efb 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -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); } //===----------------------------------------------------------------------===// -- 2.50.1