[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 12 17:54:11 PST 2007
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.236 -> 1.237
---
Log message:
stop passing vector into ctors
---
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.236 llvm/lib/Bytecode/Reader/Reader.cpp:1.237
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.236 Mon Feb 12 12:53:43 2007
+++ llvm/lib/Bytecode/Reader/Reader.cpp Mon Feb 12 19:53:54 2007
@@ -702,7 +702,7 @@
Params.push_back(getValue(Oprnds[i], Oprnds[i+1]));
}
- Result = new CallInst(F, Params);
+ Result = new CallInst(F, &Params[0], Params.size());
if (isTailCall) cast<CallInst>(Result)->setTailCall();
if (CallingConv) cast<CallInst>(Result)->setCallingConv(CallingConv);
break;
@@ -756,7 +756,7 @@
Params.push_back(getValue(Oprnds[i], Oprnds[i+1]));
}
- Result = new InvokeInst(F, Normal, Except, Params);
+ Result = new InvokeInst(F, Normal, Except, &Params[0], Params.size());
if (CallingConv) cast<InvokeInst>(Result)->setCallingConv(CallingConv);
break;
}
More information about the llvm-commits
mailing list