~pali/llvm/clang-tools-extra-trunk

Viewing all changes in revision 3171.

  • Committer: jkorous
  • Date: 2018-03-19 20:26:18 UTC
  • Revision ID: svn-v4:91177308-0d34-0410-b5e6-96231b3b80d8:clang-tools-extra/trunk:327902
[clangd] Fix undefined behavior due to misaligned type cast

The current code was casting pointer to a misaligned type which is undefined behavior.
Found by compiling with Undefined Behavior Sanitizer and running tests (check-clang-tools).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: