Skip to content

Commit 522712e

Browse files
committed
[Option] Remove the error-prone default argument true from 3-argument hasFlag
1 parent c37accf commit 522712e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Option/ArgList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class ArgList {
298298
/// true if the option is present, false if the negation is present, and
299299
/// \p Default if neither option is given. If both the option and its
300300
/// negation are present, the last one wins.
301-
bool hasFlag(OptSpecifier Pos, OptSpecifier Neg, bool Default=true) const;
301+
bool hasFlag(OptSpecifier Pos, OptSpecifier Neg, bool Default) const;
302302

303303
/// hasFlag - Given an option \p Pos, an alias \p PosAlias and its negative
304304
/// form \p Neg, return true if the option or its alias is present, false if

0 commit comments

Comments
 (0)