aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2020-10-07 09:08:41 +0200
committerRainer Orth <ro@gcc.gnu.org>2020-10-07 09:08:41 +0200
commit53b3873cf428fd78f1d92504cc20adf11181ead7 (patch)
treed797a492586c506d7b033a97f800bab827e61888 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentfba42aea438cc4c93233a10703e83f45035ffa64 (diff)
downloadllvm-53b3873cf428fd78f1d92504cc20adf11181ead7.zip
llvm-53b3873cf428fd78f1d92504cc20adf11181ead7.tar.gz
llvm-53b3873cf428fd78f1d92504cc20adf11181ead7.tar.bz2
[Support][unittests] Enforce alignment in ConvertUTFTest
`LLVM-Unit :: Support/./SupportTests/ConvertUTFTest.ConvertUTF16LittleEndianToUTF8String` `FAIL`s on Solaris/sparcv9: In `llvm/lib/Support/ConvertUTFWrapper.cpp` (`convertUTF16ToUTF8String`) the `SrcBytes` arg is reinterpreted/accessed as `UTF16` (`unsigned short`, which requires 2-byte alignment on strict-alignment targets like Sparc) without anything guaranteeing the alignment, so the access yields a `SIGBUS`. This patch avoids this by enforcing the required alignment in the callers. Tested on `sparcv9-sun-solaris2.11`. Differential Revision: https://reviews.llvm.org/D88824
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions