[llvm] ba8a2ad - [DXIL] Use consistent SmallVector parameters
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Sat May 18 13:01:32 PDT 2024
Author: Jessica Clarke
Date: 2024-05-18T20:53:21+01:00
New Revision: ba8a2ade84f4c1bfc531fe3673470377c038f31d
URL: https://github.com/llvm/llvm-project/commit/ba8a2ade84f4c1bfc531fe3673470377c038f31d
DIFF: https://github.com/llvm/llvm-project/commit/ba8a2ade84f4c1bfc531fe3673470377c038f31d.diff
LOG: [DXIL] Use consistent SmallVector parameters
Fixes: 060df78cdbbf70d5a6dfff3af1d435a5a811b886
Added:
Modified:
llvm/lib/Target/DirectX/DXILOpLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/DirectX/DXILOpLowering.cpp b/llvm/lib/Target/DirectX/DXILOpLowering.cpp
index f09e322f88e1f..1329308ffec26 100644
--- a/llvm/lib/Target/DirectX/DXILOpLowering.cpp
+++ b/llvm/lib/Target/DirectX/DXILOpLowering.cpp
@@ -41,7 +41,7 @@ static bool isVectorArgExpansion(Function &F) {
}
static SmallVector<Value *> populateOperands(Value *Arg, IRBuilder<> &Builder) {
- SmallVector<Value *, 4> ExtractedElements;
+ SmallVector<Value *> ExtractedElements;
auto *VecArg = dyn_cast<FixedVectorType>(Arg->getType());
for (unsigned I = 0; I < VecArg->getNumElements(); ++I) {
Value *Index = ConstantInt::get(Type::getInt32Ty(Arg->getContext()), I);
More information about the llvm-commits
mailing list