Commit 4140a68
authored
[Sema] Relax a failing assertion in TransformBlockExpr (#6298)
The assertion fails when the expression causing the this pointer to be
captured is part of a constexpr if statement's branch and the branch
gets discarded when the enclosing method is instantiated.
Note that the test case is added to CodeGen instead of Sema since the
translation unit has to be free of errors in order for the assertion to
be checked.
Differential Revision: https://reviews.llvm.org/D144016
(cherry picked from commit cda4a0e)
Conflicts:
clang/docs/ReleaseNotes.rst1 parent 9e253b8 commit 4140a68
File tree
3 files changed
+27
-2
lines changed- clang
- docs
- lib/Sema
- test/CodeGenCXX
3 files changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
274 | 277 | | |
275 | 278 | | |
276 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14439 | 14439 | | |
14440 | 14440 | | |
14441 | 14441 | | |
14442 | | - | |
| 14442 | + | |
| 14443 | + | |
| 14444 | + | |
| 14445 | + | |
| 14446 | + | |
| 14447 | + | |
14443 | 14448 | | |
14444 | 14449 | | |
14445 | 14450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments