summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGabor Buella <gabor.buella@intel.com>2018-04-30 14:21:28 +0000
committerGabor Buella <gabor.buella@intel.com>2018-04-30 14:21:28 +0000
commitad9a04295e026762446493564d89154dbb396c85 (patch)
tree0bee87526a85e7eb49fcc200eadf87284d7e2f5c /llvm/lib
parent5a512d63c9b43bfaaf928789d423e25847fe4b4f (diff)
downloadbcm5719-llvm-ad9a04295e026762446493564d89154dbb396c85.tar.gz
bcm5719-llvm-ad9a04295e026762446493564d89154dbb396c85.zip
NFC, Avoid a warning on pointer casting in PassPlugin.cpp
llvm-svn: 331179
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Passes/PassPlugin.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Passes/PassPlugin.cpp b/llvm/lib/Passes/PassPlugin.cpp
index 8f689ee505c..bf38fdb842e 100644
--- a/llvm/lib/Passes/PassPlugin.cpp
+++ b/llvm/lib/Passes/PassPlugin.cpp
@@ -10,6 +10,8 @@
#include "llvm/Passes/PassPlugin.h"
#include "llvm/Support/raw_ostream.h"
+#include <cstdint>
+
using namespace llvm;
Expected<PassPlugin> PassPlugin::Load(const std::string &Filename) {
@@ -22,8 +24,8 @@ Expected<PassPlugin> PassPlugin::Load(const std::string &Filename) {
inconvertibleErrorCode());
PassPlugin P{Filename, Library};
- auto *getDetailsFn =
- Library.SearchForAddressOfSymbol("llvmGetPassPluginInfo");
+ intptr_t getDetailsFn =
+ (intptr_t)Library.SearchForAddressOfSymbol("llvmGetPassPluginInfo");
if (!getDetailsFn)
// If the symbol isn't found, this is probably a legacy plugin, which is an
OpenPOWER on IntegriCloud