Update passes/techmap/libparse.cc

Allow Liberty canonical identifier including double quotes in if-body and pass-through for Synopsys-style unquoted identifiers issue#3498

Co-authored-by: Aki <201479+lethalbit@users.noreply.github.com>
This commit is contained in:
Muthiah Annamalai (முத்து அண்ணாமலை) 2023-05-09 06:40:21 -07:00 committed by GitHub
parent 17cfc969dd
commit c855502bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -236,12 +236,9 @@ LibertyAst *LibertyParser::parse()
if (tok == ':' && ast->value.empty()) {
tok = lexer(ast->value);
if (tok != 'v') {
//Synopsys-style unquoted identifiers issue#3498
} else {
//Liberty canonical identifier including double quotes
tok = lexer(str);
}
if (tok == 'v') {
tok = lexer(str);
}
while (tok == '+' || tok == '-' || tok == '*' || tok == '/' || tok == '!') {
ast->value += tok;
tok = lexer(str);