https://github.com/DeinAlptraum approved this pull request. This looks reasonable to me, but I'm coming from the Python bindings anyway and can't comment on the details for the C/C++ side. https://github.com/llvm/llvm-project/pull/141657