summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnswitch.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
index 93c10d53ebb..d419e723860 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -766,9 +766,9 @@ void LoopUnswitch::EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val,
BranchInst *BI = BranchInst::Create(TrueDest, FalseDest, BranchVal, InsertPt);
if (TI) {
// FIXME: check why white list is needed here:
- ArrayRef<unsigned> WL = {LLVMContext::MD_dbg, LLVMContext::MD_prof,
- LLVMContext::MD_make_implicit};
- BI->copyMetadata(*TI, WL);
+ unsigned WL[3] = {LLVMContext::MD_dbg, LLVMContext::MD_prof,
+ LLVMContext::MD_make_implicit};
+ BI->copyMetadata(*TI, makeArrayRef(&WL[0], 3));
if (Swapped)
BI->swapProfMetadata();
}
OpenPOWER on IntegriCloud