Ignore options that are ""

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4757 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-11-19 17:10:14 +00:00
parent 2181c0112f
commit af43b64d12

View 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);