Index: lib/Transforms/Scalar/NewGVN.cpp =================================================================== --- lib/Transforms/Scalar/NewGVN.cpp +++ lib/Transforms/Scalar/NewGVN.cpp @@ -3502,7 +3502,7 @@ "BB containing ToErase deleted unexpectedly!"); ToErase->eraseFromParent(); } - Changed |= !InstructionsToErase.empty(); + Changed |= !InstructionsToErase.empty(); // Delete all unreachable blocks. auto UnreachableBlockPred = [&](const BasicBlock &BB) {