diff --git a/include/dynarmic/A32/context.h b/include/dynarmic/A32/context.h index 1c67aed8..e3b6e657 100644 --- a/include/dynarmic/A32/context.h +++ b/include/dynarmic/A32/context.h @@ -18,9 +18,9 @@ public: Context(); ~Context(); Context(const Context&); - Context(Context&&); + Context(Context&&) noexcept; Context& operator=(const Context&); - Context& operator=(Context&&); + Context& operator=(Context&&) noexcept; /// View and modify registers. std::array& Regs(); diff --git a/src/backend/x64/a32_interface.cpp b/src/backend/x64/a32_interface.cpp index ccd987aa..eb3a0136 100644 --- a/src/backend/x64/a32_interface.cpp +++ b/src/backend/x64/a32_interface.cpp @@ -222,12 +222,12 @@ struct Context::Impl { Context::Context() : impl(std::make_unique()) { impl->jit_state.ResetRSB(); } Context::~Context() = default; Context::Context(const Context& ctx) : impl(std::make_unique(*ctx.impl)) {} -Context::Context(Context&& ctx) : impl(std::move(ctx.impl)) {} +Context::Context(Context&& ctx) noexcept : impl(std::move(ctx.impl)) {} Context& Context::operator=(const Context& ctx) { *impl = *ctx.impl; return *this; } -Context& Context::operator=(Context&& ctx) { +Context& Context::operator=(Context&& ctx) noexcept { impl = std::move(ctx.impl); return *this; }