summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Bitcode/BitstreamReaderTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Bitcode/BitstreamReaderTest.cpp')
-rw-r--r--llvm/unittests/Bitcode/BitstreamReaderTest.cpp4
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);
OpenPOWER on IntegriCloud