Commit 0552c0ac by Ryan Harrison

Remove std::move that is breaking chromium roll

This is causing the following error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
parent 90cecb52
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment