[llvm-commits] [llvm] r135281 - /llvm/trunk/lib/Transforms/Utils/LowerExpectIntrinsic.cpp
Frits van Bommel
fvbommel at gmail.com
Fri Jul 15 10:13:23 PDT 2011
Author: fvbommel
Date: Fri Jul 15 12:13:23 2011
New Revision: 135281
URL: http://llvm.org/viewvc/llvm-project?rev=135281&view=rev
Log:
No need to explicitly invoke the ArrayRef constructor here.
Modified:
llvm/trunk/lib/Transforms/Utils/LowerExpectIntrinsic.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LowerExpectIntrinsic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LowerExpectIntrinsic.cpp?rev=135281&r1=135280&r2=135281&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LowerExpectIntrinsic.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LowerExpectIntrinsic.cpp Fri Jul 15 12:13:23 2011
@@ -116,7 +116,7 @@
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);
More information about the llvm-commits
mailing list