Remove std::move that is breaking chromium roll

This is causing the following error:

moving a temporary object prevents copy elision
[-Werror,-Wpessimizing-move]
This commit is contained in:
Ryan Harrison 2019-11-04 16:23:11 -05:00
parent 90cecb5206
commit 0552c0acc8

View File

@ -252,7 +252,7 @@ public:
assert(header != nullptr);
Instruction* branch = new Instruction(OpBranch);
branch->addIdOperand(header->getId());
addInstruction(std::move(std::unique_ptr<Instruction>(branch)));
addInstruction(std::unique_ptr<Instruction>(branch));
successors.push_back(header);
}