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 authored and cuviper committed Jul 15, 2020
1 parent 378f795 commit df0446f
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 @@ -185,7 +185,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 df0446f

Please sign in to comment.