Shut off an unsigned/signed comparison warning for GCC.

llvm-svn: 58842
This commit is contained in:
Argyrios Kyrtzidis 2008-11-07 12:15:16 +00:00
parent 86d68a492a
commit f2ad9491f5

View File

@ -118,7 +118,7 @@ public:
}
void setBuiltinID(unsigned ID) {
ObjCOrBuiltinID = ID + tok::NUM_OBJC_KEYWORDS;
assert(ObjCOrBuiltinID - tok::NUM_OBJC_KEYWORDS == ID
assert(ObjCOrBuiltinID - unsigned(tok::NUM_OBJC_KEYWORDS) == ID
&& "ID too large for field!");
}