[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 06:38:47 PDT 2024
================
@@ -314,53 +316,69 @@ class APValue {
DataType Data;
public:
- APValue() : Kind(None) {}
- explicit APValue(APSInt I) : Kind(None) {
+ bool allowConstexprUnknown() const { return AllowConstexprUnknown; }
+
+ void setConstexprUnknown() { AllowConstexprUnknown = true; }
----------------
cor3ntin wrote:
I think i would prefer it, yes
https://github.com/llvm/llvm-project/pull/95474
More information about the cfe-commits
mailing list