mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Fix narrowing issue from r353129
llvm-svn: 353134
This commit is contained in:
parent
0144d76ea6
commit
df8f4042fc
@ -1328,7 +1328,8 @@ void SampleProfileLoader::propagateWeights(Function &F) {
|
||||
SortedCallTargets.size());
|
||||
} else if (!dyn_cast<IntrinsicInst>(&I)) {
|
||||
I.setMetadata(LLVMContext::MD_prof,
|
||||
MDB.createBranchWeights({BlockWeights[BB]}));
|
||||
MDB.createBranchWeights(
|
||||
{static_cast<uint32_t>(BlockWeights[BB])}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user