DavidTruby wrote: You should wait for @petrhosek to approve, but in general I would agree with you that refactoring to share code with compiler-rt/libcxx/etc is beyond the scope of this PR. https://github.com/llvm/llvm-project/pull/171610