No need to explicitly invoke the ArrayRef constructor here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135281 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Frits van Bommel 2011-07-15 17:13:23 +00:00
parent 1e479fb5c1
commit 037a60f909

View File

@ -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);