From: Frits van Bommel Date: Fri, 15 Jul 2011 17:13:23 +0000 (+0000) Subject: No need to explicitly invoke the ArrayRef constructor here. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=037a60f9090a4d034093520de268a0ad4b6b8e30;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Utils/LowerExpectIntrinsic.cpp b/lib/Transforms/Utils/LowerExpectIntrinsic.cpp index 563f7f4490a..c1213fac7bc 100644 --- a/lib/Transforms/Utils/LowerExpectIntrinsic.cpp +++ b/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(Ops, 3)); + MDNode *WeightsNode = MDNode::get(Context, Ops); BI->setMetadata(LLVMContext::MD_prof, WeightsNode); CmpI->setOperand(0, ArgValue);