[llvm-commits] [llvm] r141295 - /llvm/trunk/lib/TableGen/TGLexer.cpp
David Greene
greened at obbligato.org
Thu Oct 6 07:37:55 PDT 2011
Author: greened
Date: Thu Oct 6 09:37:47 2011
New Revision: 141295
URL: http://llvm.org/viewvc/llvm-project?rev=141295&view=rev
Log:
Fix Typo
Compare the entire keyword string.
Modified:
llvm/trunk/lib/TableGen/TGLexer.cpp
Modified: llvm/trunk/lib/TableGen/TGLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/TGLexer.cpp?rev=141295&r1=141294&r2=141295&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/TGLexer.cpp (original)
+++ llvm/trunk/lib/TableGen/TGLexer.cpp Thu Oct 6 09:37:47 2011
@@ -228,7 +228,7 @@
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;
More information about the llvm-commits
mailing list