diff --git a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h index d1e20b9b36a837..487c1f0a79af06 100644 --- a/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h +++ b/llvm/tools/llvm-exegesis/lib/SnippetGenerator.h @@ -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 VariablesChoices : VariablesChoices) - VariablesState.emplace_back(VariablesChoices); + for (ArrayRef VC : VariablesChoices) + VariablesState.emplace_back(VC); // Temporary buffer to store each combination before performing Callback. SmallVector CurrentCombination;