summaryrefslogtreecommitdiffstats
path: root/mlir/lib
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib')
-rw-r--r--mlir/lib/Parser/Parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mlir/lib/Parser/Parser.cpp b/mlir/lib/Parser/Parser.cpp
index ea82683e3bc..d01727395a9 100644
--- a/mlir/lib/Parser/Parser.cpp
+++ b/mlir/lib/Parser/Parser.cpp
@@ -1086,6 +1086,8 @@ Attribute Parser::parseAttribute(Type type) {
switch (getToken().getKind()) {
case Token::floatliteral:
case Token::integer:
+ case Token::kw_false:
+ case Token::kw_true:
case Token::minus: {
auto scalar = parseAttribute(type.getElementType());
if (!scalar)
OpenPOWER on IntegriCloud