From 0dbce2b4db35efb12f5a2fe79e616ee2a7c37d36 Mon Sep 17 00:00:00 2001 From: Frederic Riss Date: Fri, 9 Oct 2015 15:04:05 +0000 Subject: [PATCH] [dsymutil] Prevent warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249836 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/dsymutil/dsymutil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/dsymutil/dsymutil.cpp b/tools/dsymutil/dsymutil.cpp index 419d220aa4b..e9ee57f3dee 100644 --- a/tools/dsymutil/dsymutil.cpp +++ b/tools/dsymutil/dsymutil.cpp @@ -24,6 +24,7 @@ #include "llvm/Support/Signals.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/TargetSelect.h" +#include #include using namespace llvm::dsymutil; @@ -237,7 +238,7 @@ int main(int argc, char **argv) { llvm::PrettyStackTraceProgram StackPrinter(argc, argv); llvm::llvm_shutdown_obj Shutdown; LinkOptions Options; - void *MainAddr = reinterpret_cast(&exitDsymutil); + void *MainAddr = (void *)(intptr_t)&exitDsymutil; std::string SDKPath = llvm::sys::fs::getMainExecutable(argv[0], MainAddr); SDKPath = llvm::sys::path::parent_path(SDKPath); -- 2.34.1