aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-06-21 20:32:40 +0000
committerJustin Bogner <mail@justinbogner.com>2015-06-21 20:32:40 +0000
commit4c18324b8b5d0eaa1199634e3809ee52f7a851a0 (patch)
treef71527126ff6ed24ab482420c22449f1e9eacac0 /clang/unittests/libclang/LibclangTest.cpp
parentca9c0ccbc03716701ea4b87f1e509e1c87ab17d4 (diff)
downloadllvm-4c18324b8b5d0eaa1199634e3809ee52f7a851a0.zip
llvm-4c18324b8b5d0eaa1199634e3809ee52f7a851a0.tar.gz
llvm-4c18324b8b5d0eaa1199634e3809ee52f7a851a0.tar.bz2
ASTReader: Treat InputFileOffsets as unaligned to avoid UB
This is a better approach to fixing the undefined behaviour I tried to fix in r240228. This data doesn't necessarily have suitable alignment for uint64_t, so use unaligned_uint64_t instead. This fixes 225 test failures when clang is built with ubsan. llvm-svn: 240247
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions