diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -1441,7 +1441,7 @@ // When LiveVariables is removed this has to be removed/moved either. // Explicit addition of UnreachableMachineBlockElim allows stopping before or // after it with -stop-before/-stop-after. - addPass(&UnreachableMachineBlockElimID, false); + addPass(&UnreachableMachineBlockElimID); addPass(&LiveVariablesID, false); // Edge splitting is smarter with machine loop info.