now that we can pass ranges into CallInst ctors, eliminate vector heap traffic
authorChris Lattner <sabre@nondot.org>
Tue, 13 Feb 2007 06:30:42 +0000 (06:30 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Feb 2007 06:30:42 +0000 (06:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34229 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index 0299da6d0442c8e0bab337eb091d0a6812b14214..d16105153627eb50e880a26e23b34911c8712269 100644 (file)
@@ -669,7 +669,7 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds,
       const FunctionType *FTy = dyn_cast<FunctionType>(PTy->getElementType());
       if (FTy == 0) error("Call to non function pointer value!");
 
-      std::vector<Value *> Params;
+      SmallVector<Value *, 8> Params;
       if (!FTy->isVarArg()) {
         FunctionType::param_iterator It = FTy->param_begin();
 
@@ -720,7 +720,7 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds,
       if (FTy == 0)
         error("Invoke to non function pointer value!");
 
-      std::vector<Value *> Params;
+      SmallVector<Value *, 8> Params;
       BasicBlock *Normal, *Except;
       unsigned CallingConv = Oprnds.back();
       Oprnds.pop_back();