Skip to content

Commit 34c110e

Browse files
Use SmallVector
Co-authored-by: Nikita Popov <[email protected]>
1 parent 07d6015 commit 34c110e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ extern "C" LLVMValueRef LLVMRustBuildCall(LLVMBuilderRef B, LLVMTypeRef Ty, LLVM
15301530
FunctionType *FTy = unwrap<FunctionType>(Ty);
15311531

15321532
// FIXME: Is there a way around this?
1533-
std::vector<OperandBundleDef> OpBundles;
1533+
SmallVector<OperandBundleDef> OpBundles;
15341534
OpBundles.reserve(NumOpBundles);
15351535
for (unsigned i = 0; i < NumOpBundles; ++i) {
15361536
OpBundles.push_back(*OpBundlesIndirect[i]);
@@ -1584,7 +1584,7 @@ LLVMRustBuildInvoke(LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Fn,
15841584
FunctionType *FTy = unwrap<FunctionType>(Ty);
15851585

15861586
// FIXME: Is there a way around this?
1587-
std::vector<OperandBundleDef> OpBundles;
1587+
SmallVector<OperandBundleDef> OpBundles;
15881588
OpBundles.reserve(NumOpBundles);
15891589
for (unsigned i = 0; i < NumOpBundles; ++i) {
15901590
OpBundles.push_back(*OpBundlesIndirect[i]);
@@ -1614,7 +1614,7 @@ LLVMRustBuildCallBr(LLVMBuilderRef B, LLVMTypeRef Ty, LLVMValueRef Fn,
16141614
}
16151615

16161616
// FIXME: Is there a way around this?
1617-
std::vector<OperandBundleDef> OpBundles;
1617+
SmallVector<OperandBundleDef> OpBundles;
16181618
OpBundles.reserve(NumOpBundles);
16191619
for (unsigned i = 0; i < NumOpBundles; ++i) {
16201620
OpBundles.push_back(*OpBundlesIndirect[i]);

0 commit comments

Comments
 (0)