From 6e9c743e8760dd4c13cac51dea47d26366ec0508 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Sat, 23 Apr 2016 21:36:59 +0000 Subject: [PATCH] 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267299 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Reader/BitcodeReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index dc8a904921d..521256005cb 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -119,7 +119,7 @@ class BitcodeReaderMetadataList { SmallDenseMap Unknown; SmallDenseMap Final; SmallDenseMap FwdDecls; - std::vector> Arrays; + SmallVector, 1> Arrays; } OldTypeRefs; LLVMContext &Context;