Compare the entire keyword string.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene 2011-10-06 14:37:47 +00:00
parent 5d5c0624d0
commit c2d18f8929

View File

@ -228,7 +228,7 @@ tgtok::TokKind TGLexer::LexIdentifier() {
if (Len == 5 && !memcmp(IdentStart, "class", 5)) return tgtok::Class;
if (Len == 3 && !memcmp(IdentStart, "def", 3)) return tgtok::Def;
if (Len == 8 && !memcmp(IdentStart, "multidef", 3)) return tgtok::MultiDef;
if (Len == 8 && !memcmp(IdentStart, "multidef", 8)) return tgtok::MultiDef;
if (Len == 4 && !memcmp(IdentStart, "defm", 4)) return tgtok::Defm;
if (Len == 10 && !memcmp(IdentStart, "multiclass", 10))
return tgtok::MultiClass;