From f9a06f692689bd99c76c8d186faf7e292ef3f85a Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Tue, 5 Feb 2019 02:26:03 +0000 Subject: [PATCH] Fix narrowing issue from r353129 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353134 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/SampleProfile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/SampleProfile.cpp b/lib/Transforms/IPO/SampleProfile.cpp index 74831846626..0b880b1e431 100644 --- a/lib/Transforms/IPO/SampleProfile.cpp +++ b/lib/Transforms/IPO/SampleProfile.cpp @@ -1328,7 +1328,8 @@ void SampleProfileLoader::propagateWeights(Function &F) { SortedCallTargets.size()); } else if (!dyn_cast(&I)) { I.setMetadata(LLVMContext::MD_prof, - MDB.createBranchWeights({BlockWeights[BB]})); + MDB.createBranchWeights( + {static_cast(BlockWeights[BB])})); } } } -- 2.40.0