File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2148,16 +2148,16 @@ constexpr uint32_t HEXAGON_END_OF_DUPLEX = 0 << 14;
21482148// relocation.
21492149static 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 ;
You can’t perform that action at this time.
0 commit comments