Remove unused lambda capture (#2350)

This commit is contained in:
alan-baker 2019-01-31 15:57:45 -05:00 committed by GitHub
parent 3b6fee3dae
commit 63e032f910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ bool IsMerge(IRContext* context, BasicBlock* block) {
// predecessor, replacing uses of OpPhi ids with the ids associated with the
// predecessor.
void EliminateOpPhiInstructions(IRContext* context, BasicBlock* block) {
block->ForEachPhiInst([context, block](Instruction* phi) {
block->ForEachPhiInst([context](Instruction* phi) {
assert(2 == phi->NumInOperands() &&
"A block can only have one predecessor for block merging to make "
"sense.");