diff options
author | Xinliang David Li <davidxl@google.com> | 2016-08-23 18:00:41 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-08-23 18:00:41 +0000 |
commit | 812288a5b460ecb63f00271c2728c5e84a99ead1 (patch) | |
tree | d80b32350fd7923b00f2c4c11ec4259992a1eb51 /llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | |
parent | 29da951a3a9ecc8c922972448584d121905b610f (diff) | |
download | llvm-812288a5b460ecb63f00271c2728c5e84a99ead1.zip llvm-812288a5b460ecb63f00271c2728c5e84a99ead1.tar.gz llvm-812288a5b460ecb63f00271c2728c5e84a99ead1.tar.bz2 |
Possible fix of test failures on win bots
llvm-svn: 279542
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index 93c10d5..d419e72 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(); } |