diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-03 05:57:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-03 05:57:43 +0000 |
commit | 985e1822b7bc0e9a1c54eb6b5ac54203ba3335a3 (patch) | |
tree | 8c40a6405e020a57199db4416ead3615718812a9 | |
parent | f89e88d1278828e43d4a67687ba96af88a66d634 (diff) |
avoid a warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47839 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Driver/clang.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 0f6e7fad57..5d004977ca 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -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 |