projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d5c062
)
Fix Typo
author
David Greene
<greened@obbligato.org>
Thu, 6 Oct 2011 14:37:47 +0000
(14:37 +0000)
committer
David Greene
<greened@obbligato.org>
Thu, 6 Oct 2011 14:37:47 +0000
(14:37 +0000)
Compare the entire keyword string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141295
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/TableGen/TGLexer.cpp
patch
|
blob
|
history
diff --git
a/lib/TableGen/TGLexer.cpp
b/lib/TableGen/TGLexer.cpp
index a993cfd90515554b6a3c12cbbc5514935bc55db0..fec30d737911646bc4a095dc86da74da0db12bdd 100644
(file)
--- a/
lib/TableGen/TGLexer.cpp
+++ b/
lib/TableGen/TGLexer.cpp
@@
-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;