Commit 111f301
committed
[clang][bytecode] Fix diagnosing replaceable global allocator functions
Don't return true here in InvalidNewDeleteExpr just because we are in
C++26 mode. This invalid there as well.
Testcase reduced from libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.create/make_unique_for_overwrite.pass.cpp1 parent 729416e commit 111f301
File tree
2 files changed
+42
-15
lines changed- clang
- lib/AST/ByteCode
- test/AST/ByteCode
2 files changed
+42
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | 1567 | | |
1573 | 1568 | | |
1574 | 1569 | | |
1575 | | - | |
| 1570 | + | |
1576 | 1571 | | |
1577 | | - | |
| 1572 | + | |
1578 | 1573 | | |
1579 | | - | |
| 1574 | + | |
1580 | 1575 | | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | 1576 | | |
1586 | | - | |
| 1577 | + | |
| 1578 | + | |
1587 | 1579 | | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
1588 | 1590 | | |
1589 | 1591 | | |
1590 | 1592 | | |
1591 | 1593 | | |
1592 | 1594 | | |
1593 | | - | |
| 1595 | + | |
| 1596 | + | |
1594 | 1597 | | |
| 1598 | + | |
1595 | 1599 | | |
1596 | 1600 | | |
1597 | 1601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments