Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
use llvm::cast<>
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Jan 8, 2021
1 parent 3d7a561 commit 5277007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/chain/webassembly/runtimes/eos-vm-oc/LLVMEmitIR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<llvm::Value*> Args) {
auto* PTy = reinterpret_cast<llvm::PointerType*>(Callee->getType());
auto* FTy = reinterpret_cast<llvm::FunctionType*>(PTy->getElementType());
auto* PTy = llvm::cast<llvm::PointerType>(Callee->getType());
auto* FTy = llvm::cast<llvm::FunctionType>(PTy->getElementType());
return irBuilder.CreateCall(FTy, Callee, Args);
}

Expand Down

0 comments on commit 5277007

Please sign in to comment.