[Option] Remove the error-prone default argument true from 4-argument hasFlag
authorFangrui Song <i@maskray.me>
Sat, 26 Mar 2022 08:09:18 +0000 (01:09 -0700)
committerFangrui Song <i@maskray.me>
Sat, 26 Mar 2022 08:09:18 +0000 (01:09 -0700)
llvm/include/llvm/Option/ArgList.h

index e19ecec573226d83be3c076aa045df1b50142b0b..c9dd7da24e80e58f5bc55b7adb9d8f3ceb2b2082 100644 (file)
@@ -305,7 +305,7 @@ public:
   /// the negation is present, and \p Default if none of the options are
   /// given. If multiple options are present, the last one wins.
   bool hasFlag(OptSpecifier Pos, OptSpecifier PosAlias, OptSpecifier Neg,
-               bool Default = true) const;
+               bool Default) const;
 
   /// Render only the last argument match \p Id0, if present.
   template<typename ...OptSpecifiers>