diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-01-04 21:19:28 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-01-04 21:19:28 +0000 |
commit | 6e2207a134914b20f1ecd1a5c39962bbd49f49b1 (patch) | |
tree | d4ec908be96c7d9d8d57fbc4d854f208bbffcf16 /llvm/lib/Bitcode/Reader/BitstreamReader.cpp | |
parent | daff78cd87aad9d9103c52fc5fc2ec6088e1f24d (diff) | |
download | bcm5719-llvm-6e2207a134914b20f1ecd1a5c39962bbd49f49b1.tar.gz bcm5719-llvm-6e2207a134914b20f1ecd1a5c39962bbd49f49b1.zip |
Revert "Make BitCodeAbbrev ownership explicit using shared_ptr rather than IntrusiveRefCntPtr"
Breaks Clang's use of bitcode. Reverting until I have a fix to go with
it there.
This reverts commit r291006.
llvm-svn: 291007
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitstreamReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitstreamReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitstreamReader.cpp b/llvm/lib/Bitcode/Reader/BitstreamReader.cpp index 0c45b4b4cde..43c9aebd79e 100644 --- a/llvm/lib/Bitcode/Reader/BitstreamReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitstreamReader.cpp @@ -273,7 +273,7 @@ unsigned BitstreamCursor::readRecord(unsigned AbbrevID, } void BitstreamCursor::ReadAbbrevRecord() { - auto Abbv = std::make_shared<BitCodeAbbrev>(); + BitCodeAbbrev *Abbv = new BitCodeAbbrev(); unsigned NumOpInfo = ReadVBR(5); for (unsigned i = 0; i != NumOpInfo; ++i) { bool IsLiteral = Read(1); @@ -307,7 +307,7 @@ void BitstreamCursor::ReadAbbrevRecord() { if (Abbv->getNumOperandInfos() == 0) report_fatal_error("Abbrev record with no operands"); - CurAbbrevs.push_back(std::move(Abbv)); + CurAbbrevs.push_back(Abbv); } Optional<BitstreamBlockInfo> |