[cfe-commits] r47839 - /cfe/trunk/Driver/clang.cpp

Chris Lattner sabre at nondot.org
Sun Mar 2 21:57:44 PST 2008


Author: lattner
Date: Sun Mar  2 23:57:43 2008
New Revision: 47839

URL: http://llvm.org/viewvc/llvm-project?rev=47839&view=rev
Log:
avoid a warning.

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=47839&r1=47838&r2=47839&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Sun Mar  2 23:57:43 2008
@@ -880,7 +880,8 @@
 
   // 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





More information about the cfe-commits mailing list