Serialization: Skip check in WritePragmaDiagnosticMappings, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 12 Apr 2017 02:31:17 +0000 (02:31 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 12 Apr 2017 02:31:17 +0000 (02:31 +0000)
The record is never empty, since we always serialize the initial state.
Skip the check.

llvm-svn: 300021

clang/lib/Serialization/ASTWriter.cpp

index 6f0d0ee..be1945d 100644 (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);
 }
 
 //===----------------------------------------------------------------------===//