Skip to content

Commit 943dbdd

Browse files
committed
Fix build on FreeBSD 10
The libc++ used by the FreeBSD toolchain on our dist builders has some issues with vectors of move-only types. Work around this by using an LLVM SmallVector instead. This can be dropped when the FreeBSD toolchain is updated.
1 parent ce1ce2a commit 943dbdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-profdata/llvm-profdata.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ typedef SmallVector<WeightedFile, 5> WeightedFileVector;
184184
struct WriterContext {
185185
std::mutex Lock;
186186
InstrProfWriter Writer;
187-
std::vector<std::pair<Error, std::string>> Errors;
187+
SmallVector<std::pair<Error, std::string>, 0> Errors;
188188
std::mutex &ErrLock;
189189
SmallSet<instrprof_error, 4> &WriterErrorCodes;
190190

0 commit comments

Comments
 (0)