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
This commit is contained in:
Justin Bogner 2014-03-21 18:22:16 +00:00
parent 55d17f4842
commit c61e1f53d9

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