[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 20 12:15:19 PST 2024
================
@@ -1944,6 +1956,16 @@ APValue &CallStackFrame::createTemporary(const KeyT *Key, QualType T,
return createLocal(Base, Key, T, Scope);
}
+APValue &
+CallStackFrame::createConstexprUnknownAPValues(const VarDecl *Key,
+ APValue::LValueBase Base) {
+ APValue &Result = ConstexprUnknownAPValues[MapKeyTy(Key, Base.getVersion())];
+ Result = APValue(Base, CharUnits::One(), APValue::ConstexprUnknown{});
+ Result.setConstexprUnknown();
----------------
cor3ntin wrote:
That seems redundant
https://github.com/llvm/llvm-project/pull/95474
More information about the cfe-commits
mailing list