From 812288a5b460ecb63f00271c2728c5e84a99ead1 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Tue, 23 Aug 2016 18:00:41 +0000 Subject: Possible fix of test failures on win bots llvm-svn: 279542 --- llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms') 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 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(); } -- cgit v1.2.3