diff options
author | David Greene <greened@obbligato.org> | 2011-10-06 14:37:47 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-10-06 14:37:47 +0000 |
commit | c2d18f8929770cdcb8329e0e14e3a37ba068059a (patch) | |
tree | 666bfb425fef9e27dead918db91164551a13e332 /lib/TableGen | |
parent | 5d5c0624d0f5b9d89a6ad9cbc9fc96b0408ec033 (diff) | |
download | external_llvm-c2d18f8929770cdcb8329e0e14e3a37ba068059a.zip external_llvm-c2d18f8929770cdcb8329e0e14e3a37ba068059a.tar.gz external_llvm-c2d18f8929770cdcb8329e0e14e3a37ba068059a.tar.bz2 |
Fix Typo
Compare the entire keyword string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen')
-rw-r--r-- | lib/TableGen/TGLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TableGen/TGLexer.cpp b/lib/TableGen/TGLexer.cpp index a993cfd..fec30d7 100644 --- 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; |