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 3ea6da5 commit 796d5a8Copy full SHA for 796d5a8
llvm/include/llvm/ADT/CombinationGenerator.h
@@ -118,10 +118,9 @@ class CombinationGenerator {
118
: VariablesChoices(VariablesChoices_) {
119
#ifndef NDEBUG
120
assert(!VariablesChoices.empty() && "There should be some variables.");
121
- llvm::for_each(VariablesChoices, [](ArrayRef<choice_type> VariableChoices) {
+ for (ArrayRef<choice_type> VariableChoices : VariablesChoices)
122
assert(!VariableChoices.empty() &&
123
"There must always be some choice, at least a placeholder one.");
124
- });
125
#endif
126
}
127
0 commit comments