Skip to content

Commit 4011c7c

Browse files
committed
LLVMInstruction: Add writeTargetType field
1 parent 1ed91fc commit 4011c7c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/engine/internal/llvm/llvminstruction.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ struct LLVMInstruction
9090
std::string functionName;
9191
std::vector<std::pair<Compiler::StaticType, LLVMRegister *>> args; // target type, register
9292
LLVMRegister *functionReturnReg = nullptr;
93-
bool functionTargetArg = false; // whether to add target ptr to function parameters
94-
bool functionCtxArg = false; // whether to add execution context ptr to function parameters
95-
Variable *workVariable = nullptr; // for variables
96-
List *workList = nullptr; // for lists
93+
bool functionTargetArg = false; // whether to add target ptr to function parameters
94+
bool functionCtxArg = false; // whether to add execution context ptr to function parameters
95+
Variable *workVariable = nullptr; // for variables
96+
List *workList = nullptr; // for lists
97+
Compiler::StaticType writeTargetType = Compiler::StaticType::Unknown; // variable or list type (before write operation)
9798
BlockPrototype *procedurePrototype = nullptr;
9899
size_t procedureArgIndex = 0;
99100
bool loopCondition = false; // whether the instruction is part of a loop condition

0 commit comments

Comments
 (0)