Commit 64f7a4a
committed
Fix bswap intrinsic error location
When bswap is used with an incorrect type, print the location of the
call site, not the declaration.
Fixes #4465.
gcc/rust/ChangeLog:
* backend/rust-intrinsic-handlers.cc: use call site error
location instead of the declaration location
gcc/testsuite/ChangeLog:
* rust/compile/bswap.rs: update error location
Signed-off-by: Jean-Christian CÎRSTEA <jean-christian.cirstea@tuta.com>1 parent 3deeccb commit 64f7a4a
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
1400 | | - | |
1401 | | - | |
| 1400 | + | |
| 1401 | + | |
1402 | 1402 | | |
1403 | 1403 | | |
1404 | 1404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
0 commit comments