6251080 Vendor import of compiler-rt release_50 branch r312293:

Authored and Committed by Dimitry Andric 6 years ago
    Vendor import of compiler-rt release_50 branch r312293:
    https://llvm.org/svn/llvm-project/compiler-rt/branches/release_50@312293