Skip to content

Commit

Permalink
Possible fix of test failures on win bots
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279542 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
david-xl committed Aug 23, 2016
1 parent 405b046 commit 0303a1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Transforms/Scalar/LoopUnswitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 0303a1a

Please sign in to comment.