mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
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:
parent
55d17f4842
commit
c61e1f53d9
@ -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
Block a user