diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-10 22:33:08 -0400 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-07-20 09:09:33 +0000 |
commit | 97cbd459f436c169d3114be803fda49948fcae96 (patch) | |
tree | b5a7c411d6e7fd7f6dfd1c8a1ad7e0fe6a3c8600 /gcc/rust/backend/rust-constexpr.cc | |
parent | 41e7dee1030e1b4813d160b9fd7206fab2302d32 (diff) | |
download | gcc-97cbd459f436c169d3114be803fda49948fcae96.zip gcc-97cbd459f436c169d3114be803fda49948fcae96.tar.gz gcc-97cbd459f436c169d3114be803fda49948fcae96.tar.bz2 |
Replace Location with location_t in gccrs backend
gcc/rust/ChangeLog:
* backend/rust-compile-base.cc: Replace Location with location_t.
* backend/rust-compile-base.h: Likewise.
* backend/rust-compile-block.cc: Likewise.
* backend/rust-compile-expr.cc: Likewise.
* backend/rust-compile-expr.h: Likewise.
* backend/rust-compile-extern.h: Likewise.
* backend/rust-compile-implitem.h: Likewise.
* backend/rust-compile-intrinsic.cc: Likewise.
* backend/rust-compile-item.h: Likewise.
* backend/rust-compile-pattern.h: Likewise.
* backend/rust-compile-resolve-path.cc: Likewise.
* backend/rust-compile-stmt.cc: Likewise.
* backend/rust-compile-type.cc: Likewise.
* backend/rust-compile.cc: Likewise.
* backend/rust-constexpr.cc: Likewise.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-constexpr.cc')
-rw-r--r-- | gcc/rust/backend/rust-constexpr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-constexpr.cc b/gcc/rust/backend/rust-constexpr.cc index 444aa14..d161022 100644 --- a/gcc/rust/backend/rust-constexpr.cc +++ b/gcc/rust/backend/rust-constexpr.cc @@ -4523,7 +4523,7 @@ is_valid_constexpr_fn (tree fun, bool complain) // error ("invalid type for parameter %d of %<constexpr%> " // "function %q+#D", // DECL_PARM_INDEX (parm), fun); - Location locus = DECL_SOURCE_LOCATION (fun); + location_t locus = DECL_SOURCE_LOCATION (fun); rust_error_at ( locus, "invalid type for parameter %d of %<constexpr%> function", DECL_PARM_INDEX (parm)); |