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

Neumann Hon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 12:59:06 PDT 2023


Everybody0523 added a comment.

> CharSetConverterIdentity will never be a very efficient thing to use as implemented as it will perform a copy that may not be be useful. Have you consider either asserting that the encoding are distincts, or providing an error in that case instead of making a no-op copying converter?

We did consider that, but ultimately decided against it. The reason for that is so we are able to create a `create` method that is guaranteed to return a functional converter (ie. is guaranteed to not throw an error). However, if it is greatly preferable to have it assert/error in the event of an "identity" conversion, we can make that change too.


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

https://reviews.llvm.org/D88741



More information about the llvm-commits mailing list