[clang] [CGExprConstant] stop evaluating StringLiterals for non-ConstantArrayTypes (PR #70366)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 13:11:17 PDT 2023


efriedma-quic wrote:

I think I'd prefer to avoid calling into ConstExprEmitter at all for cases involving reference binding.  I think we've sort of discussed this before.  Maybe add a check to tryEmitPrivate()?  (We already have a check in tryEmitPrivateForVarInit().)

https://github.com/llvm/llvm-project/pull/70366


More information about the cfe-commits mailing list