[PATCH] D62009: [clang] perform semantic checking in constant context
Tyker via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 16 12:17:32 PDT 2019
Tyker added a comment.
i added this bit because when we eventually store the result of evaluation in ConstantExpr we will probably want to trail-allocate the APValue's possible representations separately to limit memory consumption. but if we do this the ConstantExpr node will need to be created after evaluation of the value, so we cannot use it to mark that the expression should be evaluated in constant context.
if we won't store APValue's possible representations separately in trail-allocate space, wrapping the expression in a ConstantExpr is the right solution.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62009/new/
https://reviews.llvm.org/D62009
More information about the cfe-commits
mailing list