summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-23 21:36:59 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-23 21:36:59 +0000
commit69bdc8afa99bf7009f1ee47213a13ef2683bfebf (patch)
treecc801d76199fe6a1a6d4eb5d79454a2fe7494fa6 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentece57ddd567966248231cc5519816b42bd99bd7d (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud