Commit 06e08f3
authored
AArch64: Use reportFatalUsageError for unsupported calling conv (#144840)
This probably should emit a DiagnosticInfoUnsupported and use the
default calling convention instead, but then we would need to pass
in the context.
Also move where CCAssignFnForCall is called. It was unnecessarily
called for each argument, so the error wouldn't trigger for functions
with 0 arguments.
This only ensures the error occurs for functions defined with the
calling convention. The error is still missed for outgoing calls
with no arguments. The lowering logic here is convoluted, calling
CCAssignFnForCall for each argument and it does not mirror
LowerFormalArguments so I'm not sure what's going on here.1 parent 0f302f3 commit 06e08f3
File tree
4 files changed
+26
-8
lines changed- llvm
- lib/Target/AArch64
- test
- CodeGen/AArch64
- MC/AArch64
4 files changed
+26
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7632 | 7632 | | |
7633 | 7633 | | |
7634 | 7634 | | |
7635 | | - | |
| 7635 | + | |
7636 | 7636 | | |
7637 | 7637 | | |
7638 | 7638 | | |
| |||
7741 | 7741 | | |
7742 | 7742 | | |
7743 | 7743 | | |
| 7744 | + | |
| 7745 | + | |
| 7746 | + | |
| 7747 | + | |
| 7748 | + | |
| 7749 | + | |
7744 | 7750 | | |
7745 | 7751 | | |
7746 | 7752 | | |
| |||
7757 | 7763 | | |
7758 | 7764 | | |
7759 | 7765 | | |
7760 | | - | |
7761 | | - | |
7762 | | - | |
7763 | | - | |
7764 | 7766 | | |
7765 | 7767 | | |
7766 | 7768 | | |
| |||
8429 | 8431 | | |
8430 | 8432 | | |
8431 | 8433 | | |
| 8434 | + | |
| 8435 | + | |
8432 | 8436 | | |
8433 | 8437 | | |
8434 | 8438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments