forked from OSchip/llvm-project
parent
608a4b5def
commit
8f5c5ded4e
|
@ -532,7 +532,7 @@ uintptr_t X86JITInfo::getPICJumpTableEntry(uintptr_t BB, uintptr_t Entry) {
|
|||
#endif
|
||||
}
|
||||
|
||||
template<typename T> void addUnaligned(void *Pos, T Delta) {
|
||||
template<typename T> static void addUnaligned(void *Pos, T Delta) {
|
||||
T Value;
|
||||
std::memcpy(reinterpret_cast<char*>(&Value), reinterpret_cast<char*>(Pos),
|
||||
sizeof(T));
|
||||
|
|
Loading…
Reference in New Issue