Ignore options that are ""
authorChris Lattner <sabre@nondot.org>
Tue, 19 Nov 2002 17:10:14 +0000 (17:10 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Nov 2002 17:10:14 +0000 (17:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4757 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/PassNameParser.h

index 81242c3b378ae732aab8afa5c72a0c45f344918c..43561ec671b6247254a6e2246c726132e3f54339 100644 (file)
@@ -46,7 +46,7 @@ public:
   inline bool ignorablePass(const PassInfo *P) const {
     // Ignore non-selectable and non-constructible passes!  Ignore
     // non-optimizations.
-    return P->getPassArgument() == 0 ||
+    return P->getPassArgument() == 0 || *P->getPassArgument() == 0 ||
           (P->getNormalCtor() == 0 && P->getDataCtor() == 0 &&
            P->getTargetCtor() == 0) ||
           ignorablePassImpl(P);