[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
sabre at nondot.org
Tue Jan 30 20:43:16 PST 2007
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.226 -> 1.227
---
Log message:
eliminate a temporary vector
---
Diffs of the changes: (+2 -2)
Reader.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.226 llvm/lib/Bytecode/Reader/Reader.cpp:1.227
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.226 Tue Jan 30 13:36:46 2007
+++ llvm/lib/Bytecode/Reader/Reader.cpp Tue Jan 30 22:43:00 2007
@@ -1171,8 +1171,8 @@
if (Handler) Handler->handleConstantExpression(Opcode, ArgVec, Result);
return Result;
} else if (Opcode == Instruction::GetElementPtr) { // GetElementPtr
- std::vector<Constant*> IdxList(ArgVec.begin()+1, ArgVec.end());
- Constant *Result = ConstantExpr::getGetElementPtr(ArgVec[0], IdxList);
+ Constant *Result = ConstantExpr::getGetElementPtr(ArgVec[0], &ArgVec[1],
+ ArgVec.size()-1);
if (Handler) Handler->handleConstantExpression(Opcode, ArgVec, Result);
return Result;
} else if (Opcode == Instruction::Select) {
More information about the llvm-commits
mailing list