]> granicus.if.org Git - clang/commitdiff
avoid a warning.
authorChris Lattner <sabre@nondot.org>
Mon, 3 Mar 2008 05:57:43 +0000 (05:57 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Mar 2008 05:57:43 +0000 (05:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47839 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index 0f6e7fad57cc446eb7e9026c4517f73acaa7053a..5d004977ca10957f1018e008091b35f8905396fd 100644 (file)
@@ -880,7 +880,8 @@ static void InitializeIncludePaths(const char *Argv0, HeaderSearch &Headers,
 
   // Add the clang headers, which are relative to the clang driver.
   llvm::sys::Path MainExecutablePath = 
-     llvm::sys::Path::GetMainExecutable(Argv0, (void*)InitializeIncludePaths);
+     llvm::sys::Path::GetMainExecutable(Argv0,
+                                    (void*)(intptr_t)InitializeIncludePaths);
   if (!MainExecutablePath.isEmpty()) {
     MainExecutablePath.eraseComponent();  // Remove /clang from foo/bin/clang
     MainExecutablePath.eraseComponent();  // Remove /bin   from foo/bin