diff --git a/include/llvm/Support/PassNameParser.h b/include/llvm/Support/PassNameParser.h index ba53f8237a8..81242c3b378 100644 --- a/include/llvm/Support/PassNameParser.h +++ b/include/llvm/Support/PassNameParser.h @@ -47,7 +47,8 @@ public: // Ignore non-selectable and non-constructible passes! Ignore // non-optimizations. return P->getPassArgument() == 0 || - (P->getNormalCtor() == 0 && P->getDataCtor() == 0) || + (P->getNormalCtor() == 0 && P->getDataCtor() == 0 && + P->getTargetCtor() == 0) || ignorablePassImpl(P); }