mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 16:24:51 +00:00
codegen: fix wrong node type
This commit is contained in:
parent
30442ed893
commit
a008a81eef
@ -1059,7 +1059,8 @@ static llvm::DISubroutineType *create_di_function_type(CodeGen *g, AstNodeFnProt
|
||||
|
||||
for (int i = 0; i < fn_proto->params.length; i += 1) {
|
||||
AstNode *param_node = fn_proto->params.at(i);
|
||||
llvm::DIType *param_type = to_llvm_debug_type(param_node);
|
||||
assert(param_node->type == NodeTypeParamDecl);
|
||||
llvm::DIType *param_type = to_llvm_debug_type(param_node->data.param_decl.type);
|
||||
types.push_back(param_type);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user