summaryrefslogtreecommitdiff
path: root/lib/ProfileData
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
commitc61e1f53d97e35b9f75dabb7099f35eabffcce5b (patch)
tree8ce44667440403dc3be9a9de60e3a1ccabce6fdc /lib/ProfileData
parent55d17f484238d7d3d115847895439b8b75bb659a (diff)
downloadllvm-c61e1f53d97e35b9f75dabb7099f35eabffcce5b.tar.gz
llvm-c61e1f53d97e35b9f75dabb7099f35eabffcce5b.tar.bz2
llvm-c61e1f53d97e35b9f75dabb7099f35eabffcce5b.tar.xz
ProfileData: Avoid brace initialization, windows doesn't like it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ProfileData')
-rw-r--r--lib/ProfileData/InstrProfWriter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ProfileData/InstrProfWriter.cpp b/lib/ProfileData/InstrProfWriter.cpp
index 320860a4cb..3024f9676e 100644
--- a/lib/ProfileData/InstrProfWriter.cpp
+++ b/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;;
}