Skip to content

Commit

Permalink
Merge rust-lang#83
Browse files Browse the repository at this point in the history
83: Serialise types last. r=ltratt a=vext01



Co-authored-by: Edd Barrett <vext01@gmail.com>
  • Loading branch information
bors[bot] and vext01 authored Sep 29, 2023
2 parents aec9a7a + 257e377 commit 21c2d42
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions llvm/lib/YkIR/YkIRWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,19 +279,19 @@ class YkIRWriter {
serialiseFunc(F);
}

// num_types:
OutStreamer.emitSizeT(Types.size());
// types:
for (Type *&Ty : Types) {
serialiseType(Ty);
}

// num_constants:
OutStreamer.emitSizeT(Constants.size());
// constants:
for (class Constant *&C : Constants) {
serialiseConstant(C);
}

// num_types:
OutStreamer.emitSizeT(Types.size());
// types:
for (Type *&Ty : Types) {
serialiseType(Ty);
}
}
};
} // anonymous namespace
Expand Down

0 comments on commit 21c2d42

Please sign in to comment.