r186796 - Replace 'unsigned short' with 'uint16_t' in a packed data structure for consistency with other fields and to be explicit about bit count.

Craig Topper craig.topper at gmail.com
Sun Jul 21 14:56:18 PDT 2013


Author: ctopper
Date: Sun Jul 21 16:56:18 2013
New Revision: 186796

URL: http://llvm.org/viewvc/llvm-project?rev=186796&view=rev
Log:
Replace 'unsigned short' with 'uint16_t' in a packed data structure for consistency with other fields and to be explicit about bit count.

Modified:
    cfe/trunk/lib/Basic/DiagnosticIDs.cpp

Modified: cfe/trunk/lib/Basic/DiagnosticIDs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/DiagnosticIDs.cpp?rev=186796&r1=186795&r2=186796&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/DiagnosticIDs.cpp (original)
+++ cfe/trunk/lib/Basic/DiagnosticIDs.cpp Sun Jul 21 16:56:18 2013
@@ -36,7 +36,7 @@ enum {
 };
 
 struct StaticDiagInfoRec {
-  unsigned short DiagID;
+  uint16_t DiagID;
   unsigned Mapping : 3;
   unsigned Class : 3;
   unsigned SFINAE : 1;





More information about the cfe-commits mailing list