projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55d17f4
)
ProfileData: Avoid brace initialization, windows doesn't like it
author
Justin Bogner
<mail@justinbogner.com>
Fri, 21 Mar 2014 18:22:16 +0000
(18:22 +0000)
committer
Justin Bogner
<mail@justinbogner.com>
Fri, 21 Mar 2014 18:22:16 +0000
(18:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204494
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ProfileData/InstrProfWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/ProfileData/InstrProfWriter.cpp
b/lib/ProfileData/InstrProfWriter.cpp
index
320860a
..
3024f96
100644
(file)
--- 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;;
}