We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea2d0be commit 3d437a2Copy full SHA for 3d437a2
llvm/include/llvm/Support/CommandLine.h
@@ -1459,18 +1459,16 @@ class opt
1459
}
1460
1461
1462
- template <class T> void setDefaultImpl() {
1463
- if constexpr (std::is_assignable_v<T &, T>) {
+ void setDefault() override {
+ if constexpr (std::is_assignable_v<DataType &, DataType>) {
1464
const OptionValue<DataType> &V = this->getDefault();
1465
if (V.hasValue())
1466
this->setValue(V.getValue());
1467
else
1468
- this->setValue(T());
+ this->setValue(DataType());
1469
1470
1471
1472
- void setDefault() override { setDefaultImpl<DataType>(); }
1473
-
1474
void done() {
1475
addArgument();
1476
Parser.initialize();
0 commit comments