Skip to content

Commit e9bd1ab

Browse files
nikiccuviper
authored andcommitted
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 45d0679 commit e9bd1ab

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
@@ -185,7 +185,7 @@ typedef SmallVector<WeightedFile, 5> WeightedFileVector;
185185
struct WriterContext {
186186
std::mutex Lock;
187187
InstrProfWriter Writer;
188-
std::vector<std::pair<Error, std::string>> Errors;
188+
SmallVector<std::pair<Error, std::string>, 0> Errors;
189189
std::mutex &ErrLock;
190190
SmallSet<instrprof_error, 4> &WriterErrorCodes;
191191

0 commit comments

Comments
 (0)