[JITLink] Fix endianness bug fedd32e2fa36.
authorLang Hames <lhames@gmail.com>
Mon, 27 Apr 2020 17:23:47 +0000 (10:23 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 27 Apr 2020 17:40:11 +0000 (10:40 -0700)
commit7113a9a65445ed80332674f3e2be60db39969783
tree35b316d8648b6be2764690347087b639c3936a76
parent05ef484df5678bcf531ed18700df2e521d38802a
[JITLink] Fix endianness bug fedd32e2fa36.

The ByteSwap_NN functions return their result rather than modifying their
argument in-place, so we need to write the result back to CPUType here.
llvm/lib/ExecutionEngine/JITLink/MachO.cpp