Skip to content

Instantly share code, notes, and snippets.

@nikic

nikic/.patch Secret

Created May 20, 2020 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikic/1200fed33696d1622a4ec1f523d2e651 to your computer and use it in GitHub Desktop.
Save nikic/1200fed33696d1622a4ec1f523d2e651 to your computer and use it in GitHub Desktop.
commit 6dd32e93d7505c9f9fd24119de20039bc9ffb1d0
Author: Nikita Popov <nikita.ppv@gmail.com>
Date: Wed May 20 19:26:18 2020 +0200
Fix build on FreeBSD 10
diff --git llvm/tools/llvm-profdata/llvm-profdata.cpp llvm/tools/llvm-profdata/llvm-profdata.cpp
index 41e9abb82b1..693586bdd5e 100644
--- llvm/tools/llvm-profdata/llvm-profdata.cpp
+++ llvm/tools/llvm-profdata/llvm-profdata.cpp
@@ -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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment