diff options
Diffstat (limited to 'lib/Parser/Parser.cc')
| -rw-r--r-- | lib/Parser/Parser.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Parser/Parser.cc b/lib/Parser/Parser.cc index 8b1c519..b81bf55 100644 --- a/lib/Parser/Parser.cc +++ b/lib/Parser/Parser.cc @@ -285,14 +285,7 @@ std::unique_ptr<StmtAST> Parser::ParseStatementImpl() { std::unique_ptr<StmtAST> Parser::ParseAssignStmt() { int Line = Lex.getLine(); std::string Name; - if (CurTok == tok_operator) { - int Op; - Name = ParseOperatorName(Op); - if (Name.empty()) return nullptr; - } else { - Name = Lex.IdentifierStr; - getNextToken(); - } + if (!ParseCalleeName(Name)) return nullptr; std::vector<std::string> TemplateArgs; if (CurTok == '<') { |
