Skip to content

Commit 339f727

Browse files
committed
fix lint
1 parent 4b8bd96 commit 339f727

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

llvm/lib/Object/ELF.cpp

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -823,11 +823,7 @@ decodeBBAddrMapImpl(const ELFFile<ELFT> &EF,
823823
uint32_t NumBlocksInBBRange = 0;
824824
uint32_t NumBBRanges = 1;
825825
typename ELFFile<ELFT>::uintX_t RangeBaseAddress = 0;
826-
<<<<<<< HEAD
827-
std::vector<BBAddrMap::BBEntry> BBEntries;
828826
uint32_t TotalNumBlocks = 0;
829-
=======
830-
>>>>>>> main
831827
if (FeatEnable.MultiBBRange) {
832828
NumBBRanges = readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr);
833829
if (!Cur || ULEBSizeErr)
@@ -855,24 +851,23 @@ decodeBBAddrMapImpl(const ELFFile<ELFT> &EF,
855851
NumBlocksInBBRange = readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr);
856852
}
857853
std::vector<BBAddrMap::BBEntry> BBEntries;
858-
if (!FeatEnable.OmitBBEntries) {
859-
for (uint32_t BlockIndex = 0; !MetadataDecodeErr && !ULEBSizeErr && Cur &&
860-
(BlockIndex < NumBlocksInBBRange);
861-
++BlockIndex) {
862-
uint32_t ID = Version >= 2
863-
? readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr)
864-
: BlockIndex;
865-
uint32_t Offset = readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr);
866-
uint32_t Size = readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr);
867-
uint32_t MD = readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr);
868-
if (Version >= 1) {
869-
// Offset is calculated relative to the end of the previous BB.
870-
Offset += PrevBBEndOffset;
871-
PrevBBEndOffset = Offset + Size;
872-
}
854+
if (!FeatEnable.OmitBBEntries) {
855+
for (uint32_t BlockIndex = 0; !MetadataDecodeErr && !ULEBSizeErr &&
856+
Cur && (BlockIndex < NumBlocksInBBRange);
857+
++BlockIndex) {
858+
uint32_t ID = Version >= 2
859+
? readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr)
860+
: BlockIndex;
861+
uint32_t Offset = readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr);
862+
uint32_t Size = readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr);
863+
uint32_t MD = readULEB128As<uint32_t>(Data, Cur, ULEBSizeErr);
864+
if (Version >= 1) {
865+
// Offset is calculated relative to the end of the previous BB.
866+
Offset += PrevBBEndOffset;
867+
PrevBBEndOffset = Offset + Size;
868+
}
873869
}
874870
TotalNumBlocks += BBEntries.size();
875-
}
876871
}
877872
BBRangeEntries.push_back({RangeBaseAddress, std::move(BBEntries)});
878873
}

0 commit comments

Comments
 (0)