From 1fff3623550471d20d2a4d0afeeb0bedf28edc54 Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Wed, 1 Apr 2020 00:46:57 -0600 Subject: [PATCH] Build warning: Fix #2167: Remove nested reuse of 'unreachable'. --- SPIRV/spvIR.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SPIRV/spvIR.h b/SPIRV/spvIR.h index cf6a7115..6523035e 100755 --- a/SPIRV/spvIR.h +++ b/SPIRV/spvIR.h @@ -235,8 +235,7 @@ public: assert(instructions.size() > 0); instructions.resize(1); successors.clear(); - Instruction* unreachable = new Instruction(OpUnreachable); - addInstruction(std::unique_ptr(unreachable)); + addInstruction(std::unique_ptr(new Instruction(OpUnreachable))); } // Change this block into a canonical dead continue target branching to the // given header ID. Delete instructions as necessary. A canonical dead continue