projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e37ba2c
)
Fix narrowing issue from r353129
author
Richard Trieu
<rtrieu@google.com>
Tue, 5 Feb 2019 02:26:03 +0000
(
02:26
+0000)
committer
Richard Trieu
<rtrieu@google.com>
Tue, 5 Feb 2019 02:26:03 +0000
(
02:26
+0000)
llvm-svn: 353134
llvm/lib/Transforms/IPO/SampleProfile.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/SampleProfile.cpp
b/llvm/lib/Transforms/IPO/SampleProfile.cpp
index
7483184
..
0b880b1
100644
(file)
--- a/
llvm/lib/Transforms/IPO/SampleProfile.cpp
+++ b/
llvm/lib/Transforms/IPO/SampleProfile.cpp
@@
-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])}));
}
}
}