[PATCH] D124038: [clang] Prevent folding of non-const compound expr

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 19 19:05:16 PDT 2022


efriedma added a comment.

The fix doesn't look right.

A CompoundLiteralExpr is itself an lvalue; we should catch any issues when we visit it, not a VarDecl that contains a pointer to it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124038/new/

https://reviews.llvm.org/D124038



More information about the cfe-commits mailing list