Serialized diagnostics: encode a 24 bit version number as part of the "magic number" of serialized diagnostics.

llvm-svn: 143760
This commit is contained in:
Ted Kremenek 2011-11-05 00:09:53 +00:00
parent 2724b1ffc1
commit 868504ab99
1 changed files with 2 additions and 4 deletions

View File

@ -200,10 +200,8 @@ void SDiagsWriter::EmitPreamble() {
// Emit the file header.
Stream.Emit((unsigned)'D', 8);
Stream.Emit((unsigned)'I', 8);
Stream.Emit((unsigned)'A', 8);
Stream.Emit((unsigned)'G', 8);
Stream.Emit((unsigned) Version, 32 - 8);
EmitBlockInfoBlock();
}