From 527700774585ff6c394eaa5dca50d5bf0be8fec7 Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Thu, 7 Jan 2021 23:35:05 -0500 Subject: [PATCH] use llvm::cast<> --- libraries/chain/webassembly/runtimes/eos-vm-oc/LLVMEmitIR.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/chain/webassembly/runtimes/eos-vm-oc/LLVMEmitIR.cpp b/libraries/chain/webassembly/runtimes/eos-vm-oc/LLVMEmitIR.cpp index 1b034667f4e..12dbd623362 100644 --- a/libraries/chain/webassembly/runtimes/eos-vm-oc/LLVMEmitIR.cpp +++ b/libraries/chain/webassembly/runtimes/eos-vm-oc/LLVMEmitIR.cpp @@ -351,8 +351,8 @@ namespace LLVMJIT //llvm11 removed inferring the function type automatically, plumb CreateCalls through here as done for 10 & earlier llvm::CallInst* createCall(llvm::Value* Callee, llvm::ArrayRef Args) { - auto* PTy = reinterpret_cast(Callee->getType()); - auto* FTy = reinterpret_cast(PTy->getElementType()); + auto* PTy = llvm::cast(Callee->getType()); + auto* FTy = llvm::cast(PTy->getElementType()); return irBuilder.CreateCall(FTy, Callee, Args); }