summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TGLexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/TableGen/TGLexer.cpp')
-rw-r--r--llvm/lib/TableGen/TGLexer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/TableGen/TGLexer.cpp b/llvm/lib/TableGen/TGLexer.cpp
index c160704b6e7..1a3f5a7392d 100644
--- a/llvm/lib/TableGen/TGLexer.cpp
+++ b/llvm/lib/TableGen/TGLexer.cpp
@@ -351,6 +351,9 @@ tgtok::TokKind TGLexer::LexIdentifier() {
.Case("let", tgtok::Let)
.Case("in", tgtok::In)
.Case("defvar", tgtok::Defvar)
+ .Case("if", tgtok::If)
+ .Case("then", tgtok::Then)
+ .Case("else", tgtok::ElseKW)
.Default(tgtok::Id);
if (Kind == tgtok::Id)
OpenPOWER on IntegriCloud