No need to explicitly invoke the ArrayRef constructor here.
authorFrits van Bommel <fvbommel@gmail.com>
Fri, 15 Jul 2011 17:13:23 +0000 (17:13 +0000)
committerFrits van Bommel <fvbommel@gmail.com>
Fri, 15 Jul 2011 17:13:23 +0000 (17:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135281 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LowerExpectIntrinsic.cpp

index 563f7f4490a3c8c1ddeda3b2dbd29b171bd04795..c1213fac7bc7f5b3dd668f1ccf6a408df4626aa8 100644 (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);