Skip to content
Snippets Groups Projects
Commit 6643415b authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

more type-punning removal

parent 33ae7c21
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,8 @@ void UnpinAarch64_t::HandlePcrelReloc(Instruction_t* from_insn, Relocation_t* re
uint8_t insn_bytes[insn_bytes_len]; // compiler disallows init on some platforms.
// but memcpy should init it sufficiently.
memcpy(insn_bytes, from_insn->getDataBits().c_str(), insn_bytes_len);
const auto full_insn=*(uint32_t*)insn_bytes;
auto full_insn=(uint32_t)0;
memcpy(&full_insn,insn_bytes, sizeof(full_insn));
const auto op_byte=insn_bytes[3];
if(is_adrp_type || is_adr_type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment