[cfe-commits] r136258 - /cfe/trunk/include/clang/Basic/IdentifierTable.h

Peter Collingbourne peter at pcc.me.uk
Wed Jul 27 13:32:00 PDT 2011


Author: pcc
Date: Wed Jul 27 15:32:00 2011
New Revision: 136258

URL: http://llvm.org/viewvc/llvm-project?rev=136258&view=rev
Log:
Silence gcc warning

Modified:
    cfe/trunk/include/clang/Basic/IdentifierTable.h

Modified: cfe/trunk/include/clang/Basic/IdentifierTable.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/IdentifierTable.h?rev=136258&r1=136257&r2=136258&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/IdentifierTable.h (original)
+++ cfe/trunk/include/clang/Basic/IdentifierTable.h Wed Jul 27 15:32:00 2011
@@ -409,7 +409,7 @@
   IdentifierInfo &get(StringRef Name, tok::TokenKind TokenCode) {
     IdentifierInfo &II = get(Name);
     II.TokenID = TokenCode;
-    assert(II.TokenID == TokenCode && "TokenCode too large");
+    assert(II.TokenID == (unsigned) TokenCode && "TokenCode too large");
     return II;
   }
 





More information about the cfe-commits mailing list