-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AArch64] no-FP ABI check blames caller's declaration #102983
Comments
cc @ostannard |
@llvm/issue-subscribers-backend-aarch64 Author: Jon Roelofs (jroelofs)
```
$ cat >vaargs.c <<EOF
#include <stdarg.h>
#include <stdbool.h>
double takes_double(double); static bool takes_va_list_ptr(va_list * ap) { float foo(float); int main() {
|
I'll put up a PR with tests tomorrow. |
diagnoseIfNeedsFPReg(CGM.getDiags(), TI.getABI(), ABIInfo, Arg.getType(),
- Caller);
+ Callee); Hm, that patch doesn't look right—we want to diagnose the caller—the issue is just that |
The actual point I came here to make: This should probably be backported to 19.x because this is a new diagnostic in 19.x from @ostannard, 1fd196c. |
... whereever we have the Decl for it, and even when we don't keep the SourceLocation of it aimed at the call site. Fixes: llvm#102983
…lvm#103392) ... whereever we have the Decl for it, and even when we don't keep the SourceLocation of it aimed at the call site. Fixes: llvm#102983 (cherry picked from commit 019ef52)
@llvm/issue-subscribers-clang-codegen Author: Jon Roelofs (jroelofs)
```
$ cat >vaargs.c <<EOF
#include <stdarg.h>
#include <stdbool.h>
double takes_double(double); static bool takes_va_list_ptr(va_list * ap) { int main() {
|
…lvm#103392) ... whereever we have the Decl for it, and even when we don't keep the SourceLocation of it aimed at the call site. Fixes: llvm#102983 (cherry picked from commit 019ef52)
…lvm#103392) ... whereever we have the Decl for it, and even when we don't keep the SourceLocation of it aimed at the call site. Fixes: llvm#102983 (cherry picked from commit 019ef52)
…lvm#103392) ... whereever we have the Decl for it, and even when we don't keep the SourceLocation of it aimed at the call site. Fixes: llvm#102983
…lvm#103392) ... whereever we have the Decl for it, and even when we don't keep the SourceLocation of it aimed at the call site. Fixes: llvm#102983 (cherry picked from commit 019ef52)
It would be less confusing if the diagnostic pointed at the call site for
takes_double
, with a note pointing attakes_double
's declaration.The text was updated successfully, but these errors were encountered: