diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 8f1dbe0f54b..c57d7dda6c1 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -365,7 +365,7 @@ public: virtual bool compare(const GenericOptionValue &V) const { const OptionValueCopy &VC = static_cast< const OptionValueCopy& >(V); - if (!VC.hasValue) return false; + if (!VC.hasValue()) return false; return compare(VC.getValue()); } };