diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-28 01:26:57 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-28 01:26:57 +0800 |
| commit | 5fc580a0fe1ef35f0706394ec9ebb2a088deb5e9 (patch) | |
| tree | 8ebc5bf451f73fee141372c18aaf7041fca09254 /node/ExprNode.cc | |
| parent | c84e212d0de5ff9f14ab14ac5143e56d2839ac82 (diff) | |
add if, while, repeat
fix function call
modify syntax
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(); |
