diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/lib/Bitstream | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/lib/Bitstream')
-rw-r--r-- | contrib/libs/llvm12/lib/Bitstream/Reader/BitstreamReader.cpp | 12 | ||||
-rw-r--r-- | contrib/libs/llvm12/lib/Bitstream/Reader/ya.make | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/contrib/libs/llvm12/lib/Bitstream/Reader/BitstreamReader.cpp b/contrib/libs/llvm12/lib/Bitstream/Reader/BitstreamReader.cpp index bbeb36c6de..28adfe6268 100644 --- a/contrib/libs/llvm12/lib/Bitstream/Reader/BitstreamReader.cpp +++ b/contrib/libs/llvm12/lib/Bitstream/Reader/BitstreamReader.cpp @@ -27,7 +27,7 @@ Error BitstreamCursor::EnterSubBlock(unsigned BlockID, unsigned *NumWordsP) { if (BlockInfo) { if (const BitstreamBlockInfo::BlockInfo *Info = BlockInfo->getBlockInfo(BlockID)) { - llvm::append_range(CurAbbrevs, Info->Abbrevs); + llvm::append_range(CurAbbrevs, Info->Abbrevs); } } @@ -155,9 +155,9 @@ Expected<unsigned> BitstreamCursor::skipRecord(unsigned AbbrevID) { report_fatal_error("Array element type can't be an Array or a Blob"); case BitCodeAbbrevOp::Fixed: assert((unsigned)EltEnc.getEncodingData() <= MaxChunkSize); - if (Error Err = - JumpToBit(GetCurrentBitNo() + static_cast<uint64_t>(NumElts) * - EltEnc.getEncodingData())) + if (Error Err = + JumpToBit(GetCurrentBitNo() + static_cast<uint64_t>(NumElts) * + EltEnc.getEncodingData())) return std::move(Err); break; case BitCodeAbbrevOp::VBR: @@ -186,7 +186,7 @@ Expected<unsigned> BitstreamCursor::skipRecord(unsigned AbbrevID) { SkipToFourByteBoundary(); // 32-bit alignment // Figure out where the end of this blob will be including tail padding. - const size_t NewEnd = GetCurrentBitNo() + alignTo(NumElts, 4) * 8; + const size_t NewEnd = GetCurrentBitNo() + alignTo(NumElts, 4) * 8; // If this would read off the end of the bitcode file, just set the // record to empty and return. @@ -314,7 +314,7 @@ Expected<unsigned> BitstreamCursor::readRecord(unsigned AbbrevID, // Figure out where the end of this blob will be including tail padding. size_t CurBitPos = GetCurrentBitNo(); - const size_t NewEnd = CurBitPos + alignTo(NumElts, 4) * 8; + const size_t NewEnd = CurBitPos + alignTo(NumElts, 4) * 8; // If this would read off the end of the bitcode file, just set the // record to empty and return. diff --git a/contrib/libs/llvm12/lib/Bitstream/Reader/ya.make b/contrib/libs/llvm12/lib/Bitstream/Reader/ya.make index fff7a30920..09acec1b47 100644 --- a/contrib/libs/llvm12/lib/Bitstream/Reader/ya.make +++ b/contrib/libs/llvm12/lib/Bitstream/Reader/ya.make @@ -12,8 +12,8 @@ LICENSE(Apache-2.0 WITH LLVM-exception) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) PEERDIR( - contrib/libs/llvm12 - contrib/libs/llvm12/lib/Support + contrib/libs/llvm12 + contrib/libs/llvm12/lib/Support ) ADDINCL( |