[BPF] Initialize SmallVector (NFC) (#143392)
This commit is contained in:
parent
60cd76bc34
commit
17999f01bb
@ -414,9 +414,7 @@ static void replaceWithGEP(CallInst *Call, uint32_t DimensionIndex,
|
||||
|
||||
Constant *Zero =
|
||||
ConstantInt::get(Type::getInt32Ty(Call->getParent()->getContext()), 0);
|
||||
SmallVector<Value *, 4> IdxList;
|
||||
for (unsigned I = 0; I < Dimension; ++I)
|
||||
IdxList.push_back(Zero);
|
||||
SmallVector<Value *, 4> IdxList(Dimension, Zero);
|
||||
IdxList.push_back(Call->getArgOperand(GEPIndex));
|
||||
|
||||
auto *GEP = GetElementPtrInst::CreateInBounds(getBaseElementType(Call),
|
||||
|
Loading…
x
Reference in New Issue
Block a user