Cherry-pick compiler-rt revision 338606 (PR sanitizer/86022).