From: Chris Lattner Date: Mon, 26 Nov 2001 19:20:16 +0000 (+0000) Subject: Use pointertype where appropriate X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=de51dd890fb7b0c7175f3f09dbe3220f7dbaa0fe;p=oota-llvm.git Use pointertype where appropriate git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1392 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/Interpreter/UserInput.cpp b/lib/ExecutionEngine/Interpreter/UserInput.cpp index 7ece7bc54b9..179b97d277f 100644 --- a/lib/ExecutionEngine/Interpreter/UserInput.cpp +++ b/lib/ExecutionEngine/Interpreter/UserInput.cpp @@ -236,14 +236,14 @@ bool Interpreter::callMethod(const string &Name) { static void *CreateArgv(const vector &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;