From b4964b2ab637905640ccb004c3644911d200caca Mon Sep 17 00:00:00 2001 From: yue Date: Thu, 2 Jun 2022 16:15:28 +0800 Subject: [PATCH] fix:compile error when use SharedMemQueue type Signed-off-by: yue --- tools/hdi-gen/parser/parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hdi-gen/parser/parser.cpp b/tools/hdi-gen/parser/parser.cpp index 0ad808fa..bea907ca 100644 --- a/tools/hdi-gen/parser/parser.cpp +++ b/tools/hdi-gen/parser/parser.cpp @@ -659,6 +659,7 @@ AutoPtr Parser::ParseType() break; case TokenType::SMQ: type = ParseSmqType(); + break; case TokenType::ENUM: case TokenType::STRUCT: case TokenType::UNION: @@ -671,7 +672,7 @@ AutoPtr Parser::ParseType() return nullptr; } if (type == nullptr) { - LogError(token, String::Format("this type was note declared in this scope")); + LogError(token, String::Format("this type was not declared in this scope")); } if (!CheckType(token, type)) { return nullptr;