[PATCH] Switch to support::endian::read/write in X86-specific JIT and RuntimeDyld.

Alexey Samsonov vonosmas at gmail.com
Thu Aug 21 13:07:41 PDT 2014


Hi lhames,

Unaligned reads/writes is an undefined behavior, which is
properly reported by UBSan. Fix the JIT for x86 to use special routines
from Support/Endian.h, which use portable solution (memcpy) and enforce
correct endianneess.

http://reviews.llvm.org/D5011

Files:
  lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
  lib/Target/X86/X86JITInfo.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5011.12801.patch
Type: text/x-patch
Size: 11187 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140821/0245917b/attachment.bin>


More information about the llvm-commits mailing list