forked from OSchip/llvm-project
ProfileData: Avoid brace initialization, windows doesn't like it
llvm-svn: 204494
This commit is contained in:
parent
bf8d3a00d3
commit
47b8768fc0
|
@ -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;;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue