codegen: fix wrong node type

master
Andrew Kelley 2015-11-29 14:59:41 -07:00
parent 30442ed893
commit a008a81eef
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}