diff --git a/SPIRV/spvIR.h b/SPIRV/spvIR.h index 994224d1..cf6a7115 100755 --- a/SPIRV/spvIR.h +++ b/SPIRV/spvIR.h @@ -252,7 +252,7 @@ public: assert(header != nullptr); Instruction* branch = new Instruction(OpBranch); branch->addIdOperand(header->getId()); - addInstruction(std::move(std::unique_ptr(branch))); + addInstruction(std::unique_ptr(branch)); successors.push_back(header); }