[PATCH] D88741: [SystemZ/z/OS] Add utility class for char set conversion.

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 8 01:45:23 PST 2021


jhenderson added a comment.

Drive-by comment as I'm reviewing a downstream patch - I think it's preferable to use llvm::Error and llvm::Expected instead of std::error_code, for reporting errors, as it allows you to provide more contextual information (e.g. why the conversion failed, which characters were invalid etc).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88741/new/

https://reviews.llvm.org/D88741



More information about the llvm-commits mailing list