summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/DynamicLibrary
diff options
context:
space:
mode:
authorFrederich Munch <colsebas@hotmail.com>2017-04-27 22:10:57 +0000
committerFrederich Munch <colsebas@hotmail.com>2017-04-27 22:10:57 +0000
commiteab432a18bdf1924bc98cb1a37a3a3efddb1d4e2 (patch)
treea973092ba01dc81444a421bd561087d0ca43570d /llvm/unittests/Support/DynamicLibrary
parent73d8c43da8bef37c1432c539afff57e510743ab6 (diff)
downloadbcm5719-llvm-eab432a18bdf1924bc98cb1a37a3a3efddb1d4e2.tar.gz
bcm5719-llvm-eab432a18bdf1924bc98cb1a37a3a3efddb1d4e2.zip
Fix a few pedantic warnings.
Reviewers: zturner, hansw, hans Reviewed By: hans Subscribers: hans, llvm-commits Differential Revision: https://reviews.llvm.org/D32611 llvm-svn: 301595
Diffstat (limited to 'llvm/unittests/Support/DynamicLibrary')
-rw-r--r--llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp b/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
index 793cd621d1c..d46eadc9a04 100644
--- a/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
+++ b/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
@@ -23,8 +23,8 @@ using namespace llvm::sys;
extern "C" PIPSQUEAK_EXPORT const char *TestA() { return "ProcessCall"; }
std::string LibPath() {
- std::string Path =
- fs::getMainExecutable("DynamicLibraryTests", (void *)&TestA);
+ void *Ptr = (void*)(intptr_t)TestA;
+ std::string Path = fs::getMainExecutable("DynamicLibraryTests", Ptr);
llvm::SmallString<256> Buf(path::parent_path(Path));
path::append(Buf, "PipSqueak.so");
return Buf.str();
OpenPOWER on IntegriCloud