mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 16:29:20 +00:00
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:
parent
1e479fb5c1
commit
037a60f909
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user