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/unittests/Bitcode | |
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/unittests/Bitcode')
-rw-r--r-- | llvm/unittests/Bitcode/BitstreamReaderTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Bitcode/BitstreamReaderTest.cpp b/llvm/unittests/Bitcode/BitstreamReaderTest.cpp index 935ef4bcffc..704eb803f9c 100644 --- a/llvm/unittests/Bitcode/BitstreamReaderTest.cpp +++ b/llvm/unittests/Bitcode/BitstreamReaderTest.cpp @@ -101,10 +101,10 @@ TEST(BitstreamReaderTest, readRecordWithBlobWhileStreaming) { Stream.Emit(Magic, 32); Stream.EnterSubblock(BlockID, 3); - auto Abbrev = std::make_shared<BitCodeAbbrev>(); + BitCodeAbbrev *Abbrev = new BitCodeAbbrev(); Abbrev->Add(BitCodeAbbrevOp(RecordID)); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); - AbbrevID = Stream.EmitAbbrev(std::move(Abbrev)); + AbbrevID = Stream.EmitAbbrev(Abbrev); unsigned Record[] = {RecordID}; Stream.EmitRecordWithBlob(AbbrevID, makeArrayRef(Record), BlobIn); |