Skip to content

Commit 54b3a7e

Browse files
committed
fix loadinst type
commit_hash:f304439abe934725ac66892a05e5a4656e4c12e3
1 parent 8263ace commit 54b3a7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

yql/essentials/minikql/computation/mkql_computation_node_codegen.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ template<> Type* GetTypeFor<double>(LLVMContext &context) { return Type::getDoub
14111411

14121412
void AddRefBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
14131413
auto& context = ctx.Codegen.GetContext();
1414-
const auto load = value->getType()->isPointerTy() ? new LoadInst(value->getType(), value, "load", block) : value;
1414+
const auto load = value->getType()->isPointerTy() ? new LoadInst(Type::getInt128Ty(context), value, "load", block) : value;
14151415
const auto half = CastInst::Create(Instruction::Trunc, load, Type::getInt64Ty(context), "half", block);
14161416
const auto counterType = Type::getInt32Ty(context);
14171417
const auto type = StructType::get(context, {PointerType::getUnqual(StructType::get(context)), counterType, Type::getInt16Ty(context)});
@@ -1443,7 +1443,7 @@ void AddRefBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
14431443

14441444
void UnRefBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
14451445
auto& context = ctx.Codegen.GetContext();
1446-
const auto load = value->getType()->isPointerTy() ? new LoadInst(value->getType(), value, "load", block) : value;
1446+
const auto load = value->getType()->isPointerTy() ? new LoadInst(Type::getInt128Ty(context), value, "load", block) : value;
14471447
const auto half = CastInst::Create(Instruction::Trunc, load, Type::getInt64Ty(context), "half", block);
14481448
const auto counterType = Type::getInt32Ty(context);
14491449
const auto type = StructType::get(context, {PointerType::getUnqual(StructType::get(context)), counterType, Type::getInt16Ty(context)});
@@ -1486,7 +1486,7 @@ void UnRefBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
14861486

14871487
void CleanupBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
14881488
auto& context = ctx.Codegen.GetContext();
1489-
const auto load = value->getType()->isPointerTy() ? new LoadInst(value->getType(), value, "load", block) : value;
1489+
const auto load = value->getType()->isPointerTy() ? new LoadInst(Type::getInt128Ty(context), value, "load", block) : value;
14901490
const auto half = CastInst::Create(Instruction::Trunc, load, Type::getInt64Ty(context), "half", block);
14911491
const auto counterType = Type::getInt32Ty(context);
14921492
const auto type = StructType::get(context, {PointerType::getUnqual(StructType::get(context)), counterType, Type::getInt16Ty(context)});

0 commit comments

Comments
 (0)