From 6fcf50338eb1ef3e6e290502faad855647ccf4ce Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 9 Oct 2003 20:45:42 +0000 Subject: Pass a vector around to reduce dynamic allocation Throw the RawInst class in an anon namespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8990 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/Reader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Bytecode/Reader/Reader.cpp') diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index bf2b0118a3..ac38037237 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -200,7 +200,8 @@ BasicBlock *BytecodeParser::ParseBasicBlock(const unsigned char *&Buf, BB = ParsedBasicBlocks[BlockNo]; while (Buf < EndBuf) { - Instruction *Inst = ParseInstruction(Buf, EndBuf); + std::vector Args; + Instruction *Inst = ParseInstruction(Buf, EndBuf, Args); insertValue(Inst, Values); BB->getInstList().push_back(Inst); BCR_TRACE(4, Inst); -- cgit v1.2.3-18-g5258