Tweak data types to...work?
This commit is contained in:
@@ -147,8 +147,8 @@ namespace lily {
|
||||
|
||||
void instruction_op::gen_llvm(llvm_context& ctx) {
|
||||
llvm::Value* stack = ctx.get_current_function()->arg_begin();
|
||||
llvm::Value* param1 = builder.CreateCall(stack_pop_func, { stack }, "temp");
|
||||
llvm::Value* param2 = builder.CreateCall(stack_pop_func, { stack }, "temp");
|
||||
llvm::Value* param1 = builder.CreateCall(stack_pop_func, { stack }, "temp");
|
||||
llvm::Value* param1_node_num = builder.CreatePointerCast(param1, llvm::PointerType::getUnqual(node_num_type), "temp");
|
||||
llvm::Value* param2_node_num = builder.CreatePointerCast(param2, llvm::PointerType::getUnqual(node_num_type), "temp");
|
||||
llvm::Value* param1_intptr = builder.CreateGEP(param1_node_num, { get_int32_constant(0), get_int32_constant(1) }, "temp");
|
||||
|
||||
Reference in New Issue
Block a user