diff options
Diffstat (limited to 'node/ExprNode.cc')
| -rw-r--r-- | node/ExprNode.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/ExprNode.cc b/node/ExprNode.cc index 6127f6f..4183120 100644 --- a/node/ExprNode.cc +++ b/node/ExprNode.cc @@ -90,8 +90,8 @@ Value FunctionCallNode::CodeGen() { name_.c_str()); return nullptr; } - llvm::FunctionCallee fp = - context_->GetModule()->getOrInsertFunction(name_, type->GetLLVMType()); + llvm::FunctionCallee fp = context_->GetModule()->getOrInsertFunction( + name_, llvm::cast<llvm::FunctionType>(type->GetLLVMType())); const std::vector<std::shared_ptr<Type>>& ArgTypes = type->GetArgTypes(); std::vector<Value> ArgValues(args_.size()); auto ArgTypeIt = ArgTypes.begin(); |
