[all-commits] [llvm/llvm-project] ff5453: [Clang][ExprConst] Accept prvalue for nothrow new
aokblast via All-commits
all-commits at lists.llvm.org
Sat Sep 26 21:54:40 PDT 2026
Branch: refs/heads/users/aokblast/clang/nothrow_new_prvalue
Home: https://github.com/llvm/llvm-project
Commit: ff5453f705924f0409df46cc523fcaceedcf459b
https://github.com/llvm/llvm-project/commit/ff5453f705924f0409df46cc523fcaceedcf459b
Author: ShengYi Hung <aokblast at FreeBSD.org>
Date: 2026-09-26 (Sat, 26 Sep 2026)
Changed paths:
M clang/lib/AST/ExprConstant.cpp
A clang/test/SemaCXX/new-nothrow-by-value.cpp
Log Message:
-----------
[Clang][ExprConst] Accept prvalue for nothrow new
A user defined operator new can accept prvalue for nothrow. There is
no guarantee in spec that it should be lvalue. Relax the check with
side effect only.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list