-
-
Save nikic/1200fed33696d1622a4ec1f523d2e651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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