Build warning: Fix #2167: Remove nested reuse of 'unreachable'.
This commit is contained in:
parent
e157435c1e
commit
1fff362355
@ -235,8 +235,7 @@ public:
|
|||||||
assert(instructions.size() > 0);
|
assert(instructions.size() > 0);
|
||||||
instructions.resize(1);
|
instructions.resize(1);
|
||||||
successors.clear();
|
successors.clear();
|
||||||
Instruction* unreachable = new Instruction(OpUnreachable);
|
addInstruction(std::unique_ptr<Instruction>(new Instruction(OpUnreachable)));
|
||||||
addInstruction(std::unique_ptr<Instruction>(unreachable));
|
|
||||||
}
|
}
|
||||||
// Change this block into a canonical dead continue target branching to the
|
// Change this block into a canonical dead continue target branching to the
|
||||||
// given header ID. Delete instructions as necessary. A canonical dead continue
|
// given header ID. Delete instructions as necessary. A canonical dead continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user