diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-23 21:36:59 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-23 21:36:59 +0000 |
commit | 69bdc8afa99bf7009f1ee47213a13ef2683bfebf (patch) | |
tree | cc801d76199fe6a1a6d4eb5d79454a2fe7494fa6 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | ece57ddd567966248231cc5519816b42bd99bd7d (diff) | |
download | bcm5719-llvm-69bdc8afa99bf7009f1ee47213a13ef2683bfebf.tar.gz bcm5719-llvm-69bdc8afa99bf7009f1ee47213a13ef2683bfebf.zip |
BitcodeReader: Avoid std::vector with non-movable types from r267296
r267298 didn't quite fix the build errors. Use SmallVector instead of
std::vector, the latter of which I think is trying to maintain a strong
exception safety guarantee.
http://lab.llvm.org:8011/builders/lldb-amd64-ninja-freebsd11/builds/6228
llvm-svn: 267299
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index dc8a904921d..521256005cb 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -119,7 +119,7 @@ class BitcodeReaderMetadataList { SmallDenseMap<MDString *, TempMDTuple, 1> Unknown; SmallDenseMap<MDString *, DICompositeType *, 1> Final; SmallDenseMap<MDString *, DICompositeType *, 1> FwdDecls; - std::vector<std::pair<TrackingMDRef, TempMDTuple>> Arrays; + SmallVector<std::pair<TrackingMDRef, TempMDTuple>, 1> Arrays; } OldTypeRefs; LLVMContext &Context; |