diff --git a/src/frontend/ir/basic_block.cpp b/src/frontend/ir/basic_block.cpp index b7615f52..433eb08f 100644 --- a/src/frontend/ir/basic_block.cpp +++ b/src/frontend/ir/basic_block.cpp @@ -27,9 +27,9 @@ Block::Block(const LocationDescriptor& location) Block::~Block() = default; -Block::Block(Block&&) = default; +Block::Block(Block&&) noexcept = default; -Block& Block::operator=(Block&&) = default; +Block& Block::operator=(Block&&) noexcept = default; void Block::AppendNewInst(Opcode opcode, std::initializer_list args) { PrependNewInst(end(), opcode, args); diff --git a/src/frontend/ir/basic_block.h b/src/frontend/ir/basic_block.h index ade9b15b..2ff554a8 100644 --- a/src/frontend/ir/basic_block.h +++ b/src/frontend/ir/basic_block.h @@ -47,8 +47,8 @@ public: Block(const Block&) = delete; Block& operator=(const Block&) = delete; - Block(Block&&); - Block& operator=(Block&&); + Block(Block&&) noexcept; + Block& operator=(Block&&) noexcept; bool empty() const { return instructions.empty(); } size_type size() const { return instructions.size(); }