forked from OSchip/llvm-project
[llvm-exegesis] Rename range based for loop variable in a unit test so its different than the container being iterated over. NFC
It seems like gcc 5.5 wants to iterate over the new variable instead of the container that lives outside the loop. But of course this new container is empty. Plus using a different variable names makes the code more readable.
This commit is contained in:
parent
8dc659c131
commit
1fe6e6fd85
|
@ -165,8 +165,8 @@ class CombinationGenerator {
|
|||
// Initialize the per-variable state to refer to the possible choices for
|
||||
// that variable.
|
||||
VariablesState.reserve(VariablesChoices.size());
|
||||
for (ArrayRef<choice_type> VariablesChoices : VariablesChoices)
|
||||
VariablesState.emplace_back(VariablesChoices);
|
||||
for (ArrayRef<choice_type> VC : VariablesChoices)
|
||||
VariablesState.emplace_back(VC);
|
||||
|
||||
// Temporary buffer to store each combination before performing Callback.
|
||||
SmallVector<choice_type, variable_smallsize> CurrentCombination;
|
||||
|
|
Loading…
Reference in New Issue