Skip to content

Commit ea13019

Browse files
committed
fixes from review
1 parent 9b8059e commit ea13019

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
@@ -2148,16 +2148,16 @@ constexpr uint32_t HEXAGON_END_OF_DUPLEX = 0 << 14;
21482148
// relocation.
21492149
static int getHexagonPacketOffset(const InputSection &isec,
21502150
const Relocation &rel) {
2151-
const ArrayRef<uint8_t> SectContents = isec.content();
2151+
const ArrayRef<uint8_t> data = isec.content();
21522152

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

0 commit comments

Comments
 (0)