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:
parent
f4cbfaed0a
commit
90bdf397e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user