Commit aa6512e
committed
AArch64: Use reportFatalUsageError for unsupported calling conv
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 351303c commit aa6512e
File tree
3 files changed
+23
-5
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
3 files changed
+23
-5
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 | + | |
0 commit comments