efriedma added a comment.

> Is the idea for the way forward here to ensure (i.e. adding code such) that 
> ConstExprEmitter can constant evaluate such Expr's?

For that exact construct, EvaluateAsRValue will also fail, so there's no real 
regression.  The issue would be for a constant global variable... but if we try 
to handle that, we get into the exact mess of complicated code for 
lvalue-to-rvalue conversions in CGExprConstant we were trying to avoid adding.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76096

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to