ProfileData: Avoid brace initialization, windows doesn't like it

llvm-svn: 204494
This commit is contained in:
Justin Bogner 2014-03-21 18:22:16 +00:00
parent bf8d3a00d3
commit 47b8768fc0
1 changed files with 3 additions and 1 deletions

View File

@ -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;;
}