Commit c9563a4
authored
[Clang][NFC] Remove CallExpr::CreateTemporary (#130919)
`CallExpr::CreateTemporary` was only used to deduce a conversion
sequence from a conversion operator.
We only need a type/value category for that,
so we can use a dummy Expression such as a
`OpaqueValueExpr`.
This simplify the code and avoid partially-formed
`CallExpr` with incorrect invariants (see #130725)
Fixes #1308241 parent 369c0a7 commit c9563a4
File tree
3 files changed
+6
-37
lines changed- clang
- include/clang/AST
- lib
- AST
- Sema
3 files changed
+6
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3005 | 3005 | | |
3006 | 3006 | | |
3007 | 3007 | | |
3008 | | - | |
3009 | | - | |
3010 | | - | |
3011 | | - | |
3012 | | - | |
3013 | | - | |
3014 | | - | |
3015 | | - | |
3016 | | - | |
3017 | | - | |
3018 | | - | |
3019 | | - | |
3020 | 3008 | | |
3021 | 3009 | | |
3022 | 3010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1509 | 1509 | | |
1510 | 1510 | | |
1511 | 1511 | | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | 1512 | | |
1523 | 1513 | | |
1524 | 1514 | | |
| |||
1655 | 1645 | | |
1656 | 1646 | | |
1657 | 1647 | | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
| 1648 | + | |
| 1649 | + | |
1666 | 1650 | | |
1667 | 1651 | | |
1668 | 1652 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8147 | 8147 | | |
8148 | 8148 | | |
8149 | 8149 | | |
8150 | | - | |
8151 | | - | |
8152 | | - | |
8153 | 8150 | | |
8154 | 8151 | | |
8155 | | - | |
8156 | | - | |
8157 | | - | |
| 8152 | + | |
| 8153 | + | |
| 8154 | + | |
8158 | 8155 | | |
8159 | 8156 | | |
8160 | | - | |
| 8157 | + | |
8161 | 8158 | | |
8162 | 8159 | | |
8163 | 8160 | | |
| |||
0 commit comments