From 0552c0acc85befed4f8d62d9c82d098ea77a0e73 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Mon, 4 Nov 2019 16:23:11 -0500 Subject: [PATCH] Remove std::move that is breaking chromium roll This is causing the following error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move] --- SPIRV/spvIR.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPIRV/spvIR.h b/SPIRV/spvIR.h index 994224d..cf6a711 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); } -- 2.7.4