@@ -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