diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-01-04 22:36:43 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-01-04 22:36:43 +0000 |
commit | b44f0bfb3a14fa757f49cba64cf452a2eee969b9 (patch) | |
tree | 7decc83fa58cc65f09c80df2dd2cb99892a96be1 /clang/lib/Serialization/GlobalModuleIndex.cpp | |
parent | 43a38450a94a569c3e33dfc1780f0a81ff085b31 (diff) | |
download | bcm5719-llvm-b44f0bfb3a14fa757f49cba64cf452a2eee969b9.tar.gz bcm5719-llvm-b44f0bfb3a14fa757f49cba64cf452a2eee969b9.zip |
Fix for LLVM Bitcode API change (to use std::shared_ptr)
llvm-svn: 291018
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r-- | clang/lib/Serialization/GlobalModuleIndex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp index 9f986d54a98..ae5796ede12 100644 --- a/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/clang/lib/Serialization/GlobalModuleIndex.cpp @@ -744,11 +744,11 @@ void GlobalModuleIndexBuilder::writeIndex(llvm::BitstreamWriter &Stream) { } // Create a blob abbreviation - BitCodeAbbrev *Abbrev = new BitCodeAbbrev(); + auto Abbrev = std::make_shared<BitCodeAbbrev>(); Abbrev->Add(BitCodeAbbrevOp(IDENTIFIER_INDEX)); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); - unsigned IDTableAbbrev = Stream.EmitAbbrev(Abbrev); + unsigned IDTableAbbrev = Stream.EmitAbbrev(std::move(Abbrev)); // Write the identifier table uint64_t Record[] = {IDENTIFIER_INDEX, BucketOffset}; |