[PATCH] D148821: [SystemZ][z/OS] Create utility functions for converting between EBCDIC and UTF-8.
Corentin Jabot via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 24 05:35:46 PDT 2023
cor3ntin added inline comments.
================
Comment at: llvm/lib/Support/ConvertEBCDIC.cpp:75
+ size_t Length = Source.size();
+ Result.clear();
+ while (Length--) {
----------------
I think I'd prefer to assert `Result` is empty
also, I think we should do something like `Result.reserve(Source.size())` to minimize allocations in the common case
================
Comment at: llvm/lib/Support/ConvertEBCDIC.cpp:106
+ size_t Length = Source.size();
+ Result.clear();
+ while (Length--) {
----------------
Same comment as above
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148821/new/
https://reviews.llvm.org/D148821
More information about the llvm-commits
mailing list