From 1db4cb456bafb85559df1ca7d01fc2d7bc754a3f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 28 Jul 2016 09:09:00 -0400 Subject: [PATCH] Use default copy/move constructors/assignments for Instruction. --- source/opt/instruction.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/opt/instruction.h b/source/opt/instruction.h index 611f08b..18447ca 100644 --- a/source/opt/instruction.h +++ b/source/opt/instruction.h @@ -85,6 +85,12 @@ class Instruction { Instruction(const spv_parsed_instruction_t& inst, std::vector&& dbg_line = {}); + Instruction(const Instruction&) = default; + Instruction& operator=(const Instruction&) = default; + + Instruction(Instruction&&) = default; + Instruction& operator=(Instruction&&) = default; + SpvOp opcode() const { return opcode_; } // Sets the opcode of this instruction to a specific opcode. Note this may // invalidate the instruction. -- 2.7.4