diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2026-09-28 18:12:33 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2026-09-30 16:32:47 +0000 |
| commit | ca3747034ef484b024a202d213a2e08b16066791 (patch) | |
| tree | cf644ffeae465084d0e89c25399e49d3d6cc1aff /sys/dev/amdsmb/amdsmb.c | |
| parent | 878856b7a1093d8b82903358f6104f6582910fdf (diff) | |
[Clang][ExprConst] Drop PRValue for nothrow new (#226753)
A user defined operator new can accept prvalue for nothrow. However, it
should not be a ConstExpr. Early returns by
isUsableAsGlobalAllocationFunctionInConstantEvaluation instead of doing
LValue evaluation.
Also, move CheckPlacement new logic into new OpCode. This decouples
checking from Interp.cpp to Compiler.cpp.
This fixes "Assertion failed: (E->isGLValue() ||
E->getType()->isFunctionType() || E->getType()->isVoidType() ||
isa<ObjCSelectorExpr>(E->IgnoreParens())), function EvaluateLValue" when
building the databases/mariadb123-server port.
MFC after: 1 week
Diffstat (limited to 'sys/dev/amdsmb/amdsmb.c')
0 files changed, 0 insertions, 0 deletions
