[llvm] [SystemZ][z/OS] yaml2obj GOFF symbols (PR #75971)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 22 08:46:56 PDT 2024
================
@@ -308,11 +308,14 @@ bool GOFFState::writeObject() {
if (HasError)
return false;
// Iterate over all records.
- for (const std::unique_ptr<llvm::GOFFYAML::RecordBase> &Rec : Doc.Records)
+ unsigned RecordNum = 0;
+ for (const std::unique_ptr<llvm::GOFFYAML::RecordBase> &Rec : Doc.Records) {
----------------
jh7370 wrote:
You should look up the `enumerate` function to allow iterating over the range whilst also producing an index.
https://github.com/llvm/llvm-project/pull/75971
More information about the llvm-commits
mailing list