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 109e208 commit 6bc23b5Copy full SHA for 6bc23b5
lib/Sema/CSOptimizer.cpp
@@ -125,6 +125,9 @@ static bool isSupportedDisjunction(Constraint *disjunction) {
125
// Non-operator disjunctions are supported only if they don't
126
// have any generic choices.
127
return llvm::all_of(choices, [&](Constraint *choice) {
128
+ if (choice->isDisabled())
129
+ return true;
130
+
131
if (choice->getKind() != ConstraintKind::BindOverload)
132
return false;
133
0 commit comments