summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-03-21 18:22:16 +0000
committerJustin Bogner <mail@justinbogner.com>2014-03-21 18:22:16 +0000
commit47b8768fc0647c5ce73c416abafef6589a903b30 (patch)
treece39be2bedf8cd82ee8bde9791e19f98269f9007
parentbf8d3a00d3acf68ea2cdbbcd69835d31d2e2f252 (diff)
downloadbcm5719-llvm-47b8768fc0647c5ce73c416abafef6589a903b30.tar.gz
bcm5719-llvm-47b8768fc0647c5ce73c416abafef6589a903b30.zip
ProfileData: Avoid brace initialization, windows doesn't like it
llvm-svn: 204494
-rw-r--r--llvm/lib/ProfileData/InstrProfWriter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp
index 320860a4cb4..3024f9676e3 100644
--- a/llvm/lib/ProfileData/InstrProfWriter.cpp
+++ b/llvm/lib/ProfileData/InstrProfWriter.cpp
@@ -23,7 +23,9 @@ error_code InstrProfWriter::addFunctionCounts(StringRef FunctionName,
auto Where = FunctionData.find(FunctionName);
if (Where == FunctionData.end()) {
// If this is the first time we've seen this function, just add it.
- FunctionData[FunctionName] = {FunctionHash, Counters};
+ auto &Data = FunctionData[FunctionName];
+ Data.Hash = FunctionHash;
+ Data.Counts = Counters;
return instrprof_error::success;;
}
OpenPOWER on IntegriCloud