]> granicus.if.org Git - llvm/commit
Fix r357749 for big-endian architectures
authorPavel Labath <pavel@labath.sk>
Fri, 5 Apr 2019 08:43:54 +0000 (08:43 +0000)
committerPavel Labath <pavel@labath.sk>
Fri, 5 Apr 2019 08:43:54 +0000 (08:43 +0000)
commitb27c5f5dd927fafc8a192ed40ef5d86624bc3336
treefdbd79afb86c7385d60eb126b25bae765583216d
parent38466d8cb01b6218fb89a5c83ef2b454700b406d
Fix r357749 for big-endian architectures

We need to read the strings from the minidump files as little-endian,
regardless of the host byte order.

I definitely remember thinking about this case while writing the patch
(and in fact, I have implemented that for the "write" case), but somehow
I have ended up not implementing the byte swapping when reading the
data. This adds the necessary byte-swapping and should hopefully fix
test failures on big-endian bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357754 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/Minidump.cpp