[PATCH] D46012: Avoid a warning on pointer casting, NFC
Gabor Buella via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 25 05:18:57 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330817: Avoid a warning on pointer casting, NFC (authored by GBuella, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D46012
Files:
llvm/trunk/unittests/Passes/PluginsTest.cpp
Index: llvm/trunk/unittests/Passes/PluginsTest.cpp
===================================================================
--- llvm/trunk/unittests/Passes/PluginsTest.cpp
+++ llvm/trunk/unittests/Passes/PluginsTest.cpp
@@ -19,15 +19,17 @@
#include "TestPlugin.h"
+#include <cstdint>
+
using namespace llvm;
void anchor() {}
static std::string LibPath(const std::string Name = "TestPlugin") {
const std::vector<testing::internal::string> &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());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46012.143906.patch
Type: text/x-patch
Size: 818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180425/69b2d32d/attachment.bin>
More information about the llvm-commits
mailing list