[llvm] r331179 - NFC, Avoid a warning on pointer casting in PassPlugin.cpp
Gabor Buella via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 30 07:21:29 PDT 2018
Author: gbuella
Date: Mon Apr 30 07:21:28 2018
New Revision: 331179
URL: http://llvm.org/viewvc/llvm-project?rev=331179&view=rev
Log:
NFC, Avoid a warning on pointer casting in PassPlugin.cpp
Modified:
llvm/trunk/lib/Passes/PassPlugin.cpp
Modified: llvm/trunk/lib/Passes/PassPlugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Passes/PassPlugin.cpp?rev=331179&r1=331178&r2=331179&view=diff
==============================================================================
--- llvm/trunk/lib/Passes/PassPlugin.cpp (original)
+++ llvm/trunk/lib/Passes/PassPlugin.cpp Mon Apr 30 07:21:28 2018
@@ -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(co
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
More information about the llvm-commits
mailing list