[cfe-commits] r118305 - /cfe/trunk/lib/Serialization/ASTWriter.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Nov 5 15:20:49 PDT 2010
Author: akirtzidis
Date: Fri Nov 5 17:20:49 2010
New Revision: 118305
URL: http://llvm.org/viewvc/llvm-project?rev=118305&view=rev
Log:
Don't write an empty DIAG_USER_MAPPINGS record.
Modified:
cfe/trunk/lib/Serialization/ASTWriter.cpp
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=118305&r1=118304&r2=118305&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Fri Nov 5 17:20:49 2010
@@ -1451,7 +1451,8 @@
}
}
- Stream.EmitRecord(DIAG_USER_MAPPINGS, Record);
+ if (!Record.empty())
+ Stream.EmitRecord(DIAG_USER_MAPPINGS, Record);
}
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list