This shouldn't have any functional difference, but it appears to be the
pattern used for other methods on DynamicLibrary, and it should avoid
the -Wpedantic warning on one of the build bots about the direct
reinterpret_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272461
91177308-0d34-0410-b5e6-
96231b3b80d8
std::string Name("LLVMGetRegistry_");
Name.append(RegistryName);
GetRegistry Getter =
- reinterpret_cast<GetRegistry>(DL.getAddressOfSymbol(Name.c_str()));
+ (GetRegistry)(intptr_t)DL.getAddressOfSymbol(Name.c_str());
if (Getter) {
// Call the getter function in order to get the full copy of the
// registry defined in the plugin DLL, and copy them over to the