mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 08:56:15 +08:00
avoid a warning.
llvm-svn: 47839
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user