llvm backend: use new srcloc
this allows to compile with ninja
This commit is contained in:
@@ -2337,11 +2337,14 @@ fn astgenAndSemaVarDecl(
|
||||
};
|
||||
defer gen_scope.instructions.deinit(mod.gpa);
|
||||
|
||||
const init_result_loc: astgen.ResultLoc = if (var_decl.ast.type_node != 0) .{
|
||||
.ty = try astgen.expr(mod, &gen_scope.base, .{
|
||||
.ty = @enumToInt(zir.Const.type_type),
|
||||
}, var_decl.ast.type_node),
|
||||
} else .none;
|
||||
const init_result_loc: astgen.ResultLoc = if (var_decl.ast.type_node != 0)
|
||||
.{
|
||||
.ty = try astgen.expr(mod, &gen_scope.base, .{
|
||||
.ty = @enumToInt(zir.Const.type_type),
|
||||
}, var_decl.ast.type_node),
|
||||
}
|
||||
else
|
||||
.none;
|
||||
|
||||
const init_inst = try astgen.comptimeExpr(
|
||||
mod,
|
||||
|
||||
Reference in New Issue
Block a user