diff options
| -rw-r--r-- | llvm/lib/Transforms/Utils/LowerExpectIntrinsic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerExpectIntrinsic.cpp b/llvm/lib/Transforms/Utils/LowerExpectIntrinsic.cpp index 563f7f4490a..c1213fac7bc 100644 --- a/llvm/lib/Transforms/Utils/LowerExpectIntrinsic.cpp +++ b/llvm/lib/Transforms/Utils/LowerExpectIntrinsic.cpp @@ -116,7 +116,7 @@ bool LowerExpectIntrinsic::HandleIfExpect(BranchInst *BI) { ConstantInt::get(Int32Ty, Likely ? UnlikelyBranchWeight : LikelyBranchWeight) }; - MDNode *WeightsNode = MDNode::get(Context, ArrayRef<Value *>(Ops, 3)); + MDNode *WeightsNode = MDNode::get(Context, Ops); BI->setMetadata(LLVMContext::MD_prof, WeightsNode); CmpI->setOperand(0, ArgValue); |

