diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-11-06 15:19:55 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-11-07 16:26:04 +0000 |
commit | b0d6abb923915451c6a90f1b328d8efbfdf22441 (patch) | |
tree | c6ba50781f4f5759011015c60378e79d4fec440e /gcc/rust/hir | |
parent | 5edb13bb18c80cd35047c01e43c0cebf5c3f5045 (diff) | |
download | gcc-b0d6abb923915451c6a90f1b328d8efbfdf22441.zip gcc-b0d6abb923915451c6a90f1b328d8efbfdf22441.tar.gz gcc-b0d6abb923915451c6a90f1b328d8efbfdf22441.tar.bz2 |
asm: Fix clang warnings
Fixes a couple of warnings thrown by clang, with mismatched class/struct
usages and unused members.
gcc/rust/ChangeLog:
* ast/rust-expr.h: Remove invalid usage of `struct`.
* backend/rust-compile-asm.h: Remove unused `translated` member.
* backend/rust-compile-asm.cc (CompileAsm::CompileAsm): Remove usage
of `translated` member.
* checks/errors/rust-unsafe-checker.h: Mark visitor as `override`.
* hir/tree/rust-hir-expr.h (struct AnonConst): Remove unused `locus`
member.
Diffstat (limited to 'gcc/rust/hir')
-rw-r--r-- | gcc/rust/hir/tree/rust-hir-expr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h index 9904490..cb69939 100644 --- a/gcc/rust/hir/tree/rust-hir-expr.h +++ b/gcc/rust/hir/tree/rust-hir-expr.h @@ -3700,7 +3700,6 @@ struct AnonConst return *this; } }; -; class InlineAsmOperand { @@ -3888,7 +3887,6 @@ private: tl::optional<struct Const> cnst; tl::optional<struct Sym> sym; tl::optional<struct Label> label; - location_t locus; public: InlineAsmOperand (const InlineAsmOperand &other) @@ -3931,6 +3929,7 @@ public: struct Sym get_sym () const { return sym.value (); } struct Label get_label () const { return label.value (); } }; + // Inline Assembly Node class InlineAsm : public ExprWithoutBlock { @@ -4009,6 +4008,7 @@ public: {} }; + } // namespace HIR } // namespace Rust |