aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/PassNameParser.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-19 17:10:14 +0000
committerChris Lattner <sabre@nondot.org>2002-11-19 17:10:14 +0000
commitaf43b64d12b089b41ca691e2a30c0bde2bbab97e (patch)
tree3e77e67d9912bbebd22532b26ff1ad07732907ef /include/llvm/Support/PassNameParser.h
parent2181c0112ff4a71da5e8a18f70e426508caf0be1 (diff)
downloadexternal_llvm-af43b64d12b089b41ca691e2a30c0bde2bbab97e.zip
external_llvm-af43b64d12b089b41ca691e2a30c0bde2bbab97e.tar.gz
external_llvm-af43b64d12b089b41ca691e2a30c0bde2bbab97e.tar.bz2
Ignore options that are ""
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PassNameParser.h')
-rw-r--r--include/llvm/Support/PassNameParser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/PassNameParser.h b/include/llvm/Support/PassNameParser.h
index 81242c3..43561ec 100644
--- a/include/llvm/Support/PassNameParser.h
+++ b/include/llvm/Support/PassNameParser.h
@@ -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);