summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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