From 1d3111678c1deaed979c4c9b1eeeb1a2ece96d8b Mon Sep 17 00:00:00 2001 From: Thomas Symalla Date: Tue, 3 Dec 2024 13:56:04 +0100 Subject: [PATCH] Remove `llvm::enumerate` call --- lib/TableGen/Operations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TableGen/Operations.cpp b/lib/TableGen/Operations.cpp index acfc92c..d10f3b7 100644 --- a/lib/TableGen/Operations.cpp +++ b/lib/TableGen/Operations.cpp @@ -165,7 +165,7 @@ void OperationBase::emitArgumentAccessorDeclarations(llvm::raw_ostream &out, if (m_superclass) numSuperclassArgs = m_superclass->getNumFullArguments(); - for (const auto &[index, arg] : llvm::enumerate(m_arguments)) { + for (const auto &arg : m_arguments) { const std::string capitalizedArgName = convertToCamelFromSnakeCase(arg.name, true);