================
@@ -2446,6 +2446,14 @@ static bool
interp__builtin_is_within_lifetime(InterpState &S, CodePtr OpPC,
return false;
}
+ if (!Ptr.isBlockPointer()) {
+ S.FFDiag(S.Current->getSource(OpPC),
+ diag::note_constexpr_access_unreadable_object)
+ << AK_Read << Ptr.toDiagnosticString(S.getASTContext());
+ noteValueLocation(S, Ptr);
----------------
tbaederr wrote:
Changed diagnostics for what? We weren't emitting the diagnostic here before at
all so how did it change?
https://github.com/llvm/llvm-project/pull/228337
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits