[clang] [clang][Parser] Preserve LHS in RecoveryExpr for binary operations statement boundaries. (PR #192535)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 20 06:37:23 PDT 2026
================
@@ -540,7 +542,11 @@ Parser::ParseRHSOfBinaryExpression(ExprResult LHS, prec::Level MinPrec) {
if (!LHS.isInvalid()) {
// Combine the LHS and RHS into the LHS (e.g. build AST).
- if (TernaryMiddle.isInvalid()) {
+ if (RHS.isInvalid()) {
+ LHS = Actions.CreateRecoveryExpr(LHS.get()->getBeginLoc(),
----------------
hokein wrote:
This looks like a bot account that's posting random comments across different PRs.
https://github.com/llvm/llvm-project/pull/192535
More information about the cfe-commits
mailing list