diff options
author | vvvv <vvvv@yandex-team.com> | 2025-01-15 21:34:13 +0300 |
---|---|---|
committer | vvvv <vvvv@yandex-team.com> | 2025-01-15 22:03:38 +0300 |
commit | 54b3a7e8328e6a6b0dac177cb1da384a9392df2c (patch) | |
tree | fbb12fc9a5aa5e8a9500eed7852e3774b7c7878a | |
parent | 8263ace031555c40653b19ade8eeb3237dad95f1 (diff) | |
download | ydb-54b3a7e8328e6a6b0dac177cb1da384a9392df2c.tar.gz |
fix loadinst type
commit_hash:f304439abe934725ac66892a05e5a4656e4c12e3
-rw-r--r-- | yql/essentials/minikql/computation/mkql_computation_node_codegen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yql/essentials/minikql/computation/mkql_computation_node_codegen.cpp b/yql/essentials/minikql/computation/mkql_computation_node_codegen.cpp index d0e4ea7871..23be45fa19 100644 --- a/yql/essentials/minikql/computation/mkql_computation_node_codegen.cpp +++ b/yql/essentials/minikql/computation/mkql_computation_node_codegen.cpp @@ -1411,7 +1411,7 @@ template<> Type* GetTypeFor<double>(LLVMContext &context) { return Type::getDoub void AddRefBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) { auto& context = ctx.Codegen.GetContext(); - const auto load = value->getType()->isPointerTy() ? new LoadInst(value->getType(), value, "load", block) : value; + const auto load = value->getType()->isPointerTy() ? new LoadInst(Type::getInt128Ty(context), value, "load", block) : value; const auto half = CastInst::Create(Instruction::Trunc, load, Type::getInt64Ty(context), "half", block); const auto counterType = Type::getInt32Ty(context); 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) { void UnRefBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) { auto& context = ctx.Codegen.GetContext(); - const auto load = value->getType()->isPointerTy() ? new LoadInst(value->getType(), value, "load", block) : value; + const auto load = value->getType()->isPointerTy() ? new LoadInst(Type::getInt128Ty(context), value, "load", block) : value; const auto half = CastInst::Create(Instruction::Trunc, load, Type::getInt64Ty(context), "half", block); const auto counterType = Type::getInt32Ty(context); 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) { void CleanupBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) { auto& context = ctx.Codegen.GetContext(); - const auto load = value->getType()->isPointerTy() ? new LoadInst(value->getType(), value, "load", block) : value; + const auto load = value->getType()->isPointerTy() ? new LoadInst(Type::getInt128Ty(context), value, "load", block) : value; const auto half = CastInst::Create(Instruction::Trunc, load, Type::getInt64Ty(context), "half", block); const auto counterType = Type::getInt32Ty(context); const auto type = StructType::get(context, {PointerType::getUnqual(StructType::get(context)), counterType, Type::getInt16Ty(context)}); |