Commit e07aef9
authored
[clang][Sema] close IsStandardConversion hole when adding cfi_unchecked_callee (llvm#164592)
Commit b194cf1 changed this function for the case where attribute
`cfi_unchecked_callee` is added in a function conversion. But this
introduces a hole (issue llvm#162798), and it seems the change was
unnecessary: the preceding `TryFunctionConversion` will already allow
adding the `cfi_unchecked_callee` attribute, and will update `FromType`
if it succeeds. So we revert the changes to `IsStandardConversion`. We
also remove the helper function `AddingCFIUncheckedCallee` which is no
longer needed, and simplify the corresponding
`DiscardingCFIUncheckedCallee`.
Fixes: llvm#1627981 parent b6e6a4d commit e07aef9
File tree
4 files changed
+10
-37
lines changed- clang
- include/clang/Sema
- lib/Sema
- test/Frontend
4 files changed
+10
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2681 | 2681 | | |
2682 | 2682 | | |
2683 | 2683 | | |
2684 | | - | |
2685 | | - | |
2686 | | - | |
2687 | | - | |
2688 | | - | |
2689 | 2684 | | |
2690 | 2685 | | |
2691 | 2686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12373 | 12373 | | |
12374 | 12374 | | |
12375 | 12375 | | |
12376 | | - | |
12377 | | - | |
12378 | | - | |
12379 | | - | |
12380 | | - | |
12381 | | - | |
12382 | | - | |
12383 | | - | |
| 12376 | + | |
| 12377 | + | |
| 12378 | + | |
12384 | 12379 | | |
12385 | 12380 | | |
12386 | 12381 | | |
| |||
12392 | 12387 | | |
12393 | 12388 | | |
12394 | 12389 | | |
12395 | | - | |
12396 | | - | |
12397 | | - | |
12398 | | - | |
| 12390 | + | |
12399 | 12391 | | |
12400 | 12392 | | |
12401 | | - | |
12402 | | - | |
12403 | | - | |
12404 | | - | |
12405 | | - | |
12406 | | - | |
12407 | | - | |
12408 | | - | |
12409 | | - | |
12410 | | - | |
12411 | | - | |
12412 | | - | |
12413 | | - | |
| 12393 | + | |
12414 | 12394 | | |
12415 | 12395 | | |
12416 | 12396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2532 | 2532 | | |
2533 | 2533 | | |
2534 | 2534 | | |
2535 | | - | |
2536 | | - | |
2537 | | - | |
2538 | | - | |
2539 | | - | |
2540 | | - | |
| 2535 | + | |
2541 | 2536 | | |
2542 | 2537 | | |
2543 | | - | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
2544 | 2541 | | |
2545 | 2542 | | |
2546 | 2543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments