[PATCH] D123648: Restrict lvalue-to-rvalue conversions in CGExprConstant.
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 13 11:12:32 PDT 2022
efriedma added inline comments.
================
Comment at: clang/lib/CodeGen/CGExprConstant.cpp:1096
+ case CK_LValueToRValue: {
+ // We don't really support doing lvalue-to-rvalue conversions here; any
+ // interesting conversions should be done in Evaluate(). But as a
----------------
Miss_Grape wrote:
> Could you add a test case?
Compound literals are covered by existing testcases, if that's what you're asking.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123648/new/
https://reviews.llvm.org/D123648
More information about the cfe-commits
mailing list