Skip to content

Commit

Permalink
Fix build on FreeBSD 10
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nikic committed May 20, 2020
1 parent ce1ce2a commit 943dbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/tools/llvm-profdata/llvm-profdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ typedef SmallVector<WeightedFile, 5> WeightedFileVector;
struct WriterContext {
std::mutex Lock;
InstrProfWriter Writer;
std::vector<std::pair<Error, std::string>> Errors;
SmallVector<std::pair<Error, std::string>, 0> Errors;
std::mutex &ErrLock;
SmallSet<instrprof_error, 4> &WriterErrorCodes;

Expand Down

0 comments on commit 943dbdd

Please sign in to comment.