aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/analyze.hpp')
-rw-r--r--src/analyze.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/analyze.hpp b/src/analyze.hpp
index f7ccbf18d9..a7b6ee79cf 100644
--- a/src/analyze.hpp
+++ b/src/analyze.hpp
@@ -193,6 +193,7 @@ struct BlockContext {
BlockContext *root; // always points to the BlockContext with the NodeTypeFnDef
BlockContext *parent; // nullptr when this is the root
HashMap<Buf *, LocalVariableTableEntry *, buf_hash, buf_eql_buf> variable_table;
+ ZigList<AstNode *> cast_expr_alloca_list;
LLVMZigDIScope *di_scope;
};
@@ -244,6 +245,9 @@ enum CastOp {
struct CastNode {
CastOp op;
+ // if op is CastOpArrayToString, this will be a pointer to
+ // the string struct on the stack
+ LLVMValueRef ptr;
};
struct CodeGenNode {