[all-commits] [llvm/llvm-project] a892b0: PR49465: Disallow constant evaluation of a call to...
Richard Smith via All-commits
all-commits at lists.llvm.org
Tue Mar 9 15:06:30 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a892b0015ed6af5945d06e87ca5da1ad8be7ad29
https://github.com/llvm/llvm-project/commit/a892b0015ed6af5945d06e87ca5da1ad8be7ad29
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2021-03-09 (Tue, 09 Mar 2021)
Changed paths:
M clang/include/clang/Basic/DiagnosticASTKinds.td
M clang/lib/AST/ExprConstant.cpp
M clang/test/SemaCXX/cxx2a-constexpr-dynalloc.cpp
Log Message:
-----------
PR49465: Disallow constant evaluation of a call to operator delete(nullptr).
The only time we would consider allowing this is inside a call to
std::allocator<T>::deallocate, whose contract does not permit deletion
of null pointers.
More information about the All-commits
mailing list