From 58713b20e3aea976c45da77aa4e083ecc8fda418 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 28 Sep 2019 11:32:36 -0300 Subject: [PATCH] add llvmvalueref to Parameter --- src/comp_ctx.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/comp_ctx.zig b/src/comp_ctx.zig index b22768c..d188645 100644 --- a/src/comp_ctx.zig +++ b/src/comp_ctx.zig @@ -1,5 +1,6 @@ const std = @import("std"); const ast = @import("ast.zig"); +const llvm = @import("llvm.zig"); pub const CompilationError = error{ TypeError, @@ -79,6 +80,7 @@ pub const Scope = struct { pub const Parameter = struct { idx: usize, typ: SymbolUnderlyingType, + alloca: ?llvm.LLVMValueRef = null, }; pub const ParameterMap = std.StringHashMap(Parameter);