Integrate new arm patch and fix an LLVM bug

Thanks @luqama!