diff options
Diffstat (limited to 'tools/llvm-ld/llvm-ld.cpp')
-rw-r--r-- | tools/llvm-ld/llvm-ld.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index 62e5f09a08..17035e2a31 100644 --- a/tools/llvm-ld/llvm-ld.cpp +++ b/tools/llvm-ld/llvm-ld.cpp @@ -415,7 +415,7 @@ static void EmitShellScript(char **argv) { // build tree to the destination file. std::string ErrMsg; sys::Path llvmstub = FindExecutable("llvm-stub.exe", argv[0], - reinterpret_cast<void *>(&Optimize)); + (void *)(intptr_t)&Optimize); if (llvmstub.isEmpty()) PrintAndExit("Could not find llvm-stub.exe executable!"); @@ -642,7 +642,7 @@ int main(int argc, char **argv, char **envp) { // Determine the locations of the llc and gcc programs. sys::Path llc = FindExecutable("llc", argv[0], - reinterpret_cast<void *>(&Optimize)); + (void *)(intptr_t)&Optimize); if (llc.isEmpty()) PrintAndExit("Failed to find llc"); @@ -672,7 +672,7 @@ int main(int argc, char **argv, char **envp) { // Determine the locations of the llc and gcc programs. sys::Path llc = FindExecutable("llc", argv[0], - reinterpret_cast<void *>(&Optimize)); + (void *)(intptr_t)&Optimize); if (llc.isEmpty()) PrintAndExit("Failed to find llc"); |