aboutsummaryrefslogtreecommitdiff
path: root/lib/Parser/Parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Parser/Parser.cc')
-rw-r--r--lib/Parser/Parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parser/Parser.cc b/lib/Parser/Parser.cc
index 26eeac6..d3b2daa 100644
--- a/lib/Parser/Parser.cc
+++ b/lib/Parser/Parser.cc
@@ -242,7 +242,7 @@ std::unique_ptr<StmtAST> Parser::ParseAssignStmt() {
return nullptr;
}
getNextToken();
- auto Expr = ParseExpression();
+ auto Expr = ParseAssignmentRHS();
if (!Expr) return nullptr;
if (Accesses.empty())