================
@@ -4458,6 +4458,11 @@ void clang::checkUnsafeBufferUsage(const Decl *D,
SmallVector<Stmt *> Stmts;
if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
+ // Consteval functions are free of UB by the spec, so we don't need to
+ // visit them or produce diagnostics.
+ if (FD->isConsteval()) {
----------------
mxms0 wrote:
Fixed :)
https://github.com/llvm/llvm-project/pull/171503
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits