Index: unittests/Passes/PluginsTest.cpp =================================================================== --- unittests/Passes/PluginsTest.cpp +++ unittests/Passes/PluginsTest.cpp @@ -19,6 +19,8 @@ #include "TestPlugin.h" +#include + using namespace llvm; void anchor() {} @@ -27,7 +29,7 @@ const std::vector &Argvs = testing::internal::GetArgvs(); const char *Argv0 = Argvs.size() > 0 ? Argvs[0].c_str() : "PluginsTests"; - void *Ptr = (void *)anchor; + void *Ptr = (void *)(intptr_t)anchor; std::string Path = sys::fs::getMainExecutable(Argv0, Ptr); llvm::SmallString<256> Buf{sys::path::parent_path(Path)}; sys::path::append(Buf, (Name + ".so").c_str());