1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Use pointertype where appropriate

llvm-svn: 1392
This commit is contained in:
Chris Lattner 2001-11-26 19:20:16 +00:00
parent f4cbfaed0a
commit 90bdf397e1

View File

@ -236,14 +236,14 @@ bool Interpreter::callMethod(const string &Name) {
static void *CreateArgv(const vector<string> &InputArgv) {
// Pointers are 64 bits...
uint64_t *Result = new uint64_t[InputArgv.size()+1];
uint64_t *Result = new PointerTy[InputArgv.size()+1];
for (unsigned i = 0; i < InputArgv.size(); ++i) {
unsigned Size = InputArgv[i].size()+1;
char *Dest = new char[Size];
copy(InputArgv[i].begin(), InputArgv[i].end(), Dest);
Dest[Size-1] = 0;
Result[i] = (uint64_t)Dest;
Result[i] = (PointerTy)Dest;
}
Result[InputArgv.size()] = 0;