================
@@ -535,6 +535,8 @@ bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer
&Ptr,
if (!Ptr.isZero())
return true;
const SourceInfo &Loc = S.Current->getSource(OpPC);
+ if (S.shouldRelaxDiag(Loc.getLoc(), diag::note_constexpr_null_subobject))
+ return true;
----------------
tbaederr wrote:
Looks like this should be moved to `getField()`?
https://github.com/llvm/llvm-project/pull/217311
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits