Skip to content

Commit f9219b3

Browse files
committed
fixes from review
1 parent b19959e commit f9219b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lld/ELF/Relocations.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,16 +2147,16 @@ constexpr uint32_t HEXAGON_END_OF_DUPLEX = 0 << 14;
21472147
// relocation.
21482148
static int getHexagonPacketOffset(const InputSection &isec,
21492149
const Relocation &rel) {
2150-
const ArrayRef<uint8_t> SectContents = isec.content();
2150+
const ArrayRef<uint8_t> data = isec.content();
21512151

21522152
// Search back as many as 3 instructions.
21532153
for (unsigned i = 0;; i++) {
21542154
if (i == 3 || rel.offset < (i + 1) * 4)
21552155
return i * 4;
21562156
uint32_t instWord = 0;
2157-
const ArrayRef<uint8_t> InstWordContents =
2158-
SectContents.drop_front(rel.offset - (i + 1) * 4);
2159-
::memcpy(&instWord, InstWordContents.data(), sizeof(instWord));
2157+
const ArrayRef<uint8_t> instWordContents =
2158+
data.drop_front(rel.offset - (i + 1) * 4);
2159+
memcpy(&instWord, instWordContents.data(), sizeof(instWord));
21602160
if (((instWord & HEXAGON_MASK_END_PACKET) == HEXAGON_END_OF_PACKET) ||
21612161
((instWord & HEXAGON_MASK_END_PACKET) == HEXAGON_END_OF_DUPLEX))
21622162
return i * 4;

0 commit comments

Comments
 (0)