From: Frederich Munch Date: Thu, 27 Apr 2017 22:10:57 +0000 (+0000) Subject: Fix a few pedantic warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6e6c85f4f6376b2d77d9bc998bb1508a1e9187a;p=llvm Fix a few pedantic warnings. Reviewers: zturner, hansw, hans Reviewed By: hans Subscribers: hans, llvm-commits Differential Revision: https://reviews.llvm.org/D32611 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301595 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-pdbdump/PdbYaml.cpp b/tools/llvm-pdbdump/PdbYaml.cpp index 65a5a9142d2..10db85f08d3 100644 --- a/tools/llvm-pdbdump/PdbYaml.cpp +++ b/tools/llvm-pdbdump/PdbYaml.cpp @@ -311,7 +311,7 @@ void MappingContextTraits:: @@ -320,7 +320,7 @@ void MappingContextTraits:: @@ -329,7 +329,7 @@ void MappingContextTraits:: @@ -340,7 +340,7 @@ void MappingContextTraits:: @@ -348,7 +348,7 @@ void MappingContextTraits:: mapping(IO &IO, pdb::yaml::PdbTpiRecord &Obj, diff --git a/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp b/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp index 793cd621d1c..d46eadc9a04 100644 --- a/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp +++ b/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();