[llvm] [TableGen] Use llvm::enumerate in one place (NFC) (PR #136399)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 18 21:35:08 PDT 2025
================
@@ -200,26 +200,24 @@ CodeGenInstAlias::CodeGenInstAlias(const Record *R, const CodeGenTarget &T)
// Decode and validate the arguments of the result.
unsigned AliasOpNo = 0;
- for (unsigned i = 0, e = ResultInst->Operands.size(); i != e; ++i) {
-
+ for (auto [OpIdx, OpInfo] : enumerate(ResultInst->Operands)) {
----------------
kuhar wrote:
See https://llvm.org/docs/ProgrammersManual.html#iterating-over-ranges
https://github.com/llvm/llvm-project/pull/136399
More information about the llvm-commits
mailing list