Skip to content

Commit e4dcfe0

Browse files
ArtemonchikKamil Khamitov
authored andcommitted
YQL-19520: Enable i128 <-> UnboxedValuePod proxy for codegen (ydb-platform#16306)
1 parent 4d227b8 commit e4dcfe0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ydb/core/kqp/runtime/kqp_compute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class TKqpEnsureWrapper : public TMutableCodegeneratorNode<TKqpEnsureWrapper> {
5252
BranchInst::Create(good, kill, pass, block);
5353

5454
block = kill;
55-
const auto doFunc = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TKqpEnsureWrapper::Throw));
55+
const auto doFunc = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr<&TKqpEnsureWrapper::Throw>());
5656
const auto doFuncArg = ConstantInt::get(Type::getInt64Ty(context), (ui64)this);
5757
const auto doFuncType = FunctionType::get(Type::getVoidTy(context), { Type::getInt64Ty(context), ctx.Ctx->getType() }, false);
5858
const auto doFuncPtr = CastInst::Create(Instruction::IntToPtr, doFunc, PointerType::getUnqual(doFuncType), "thrower", block);

ydb/core/kqp/runtime/kqp_read_table.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class TKqpScanWideReadTableWrapperBase : public TStatelessWideFlowCodegeneratorN
273273
new StoreInst(init, fields, &ctx.Func->getEntryBlock().back());
274274

275275
const auto ptrType = PointerType::getUnqual(StructType::get(context));
276-
const auto func = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TKqpScanWideReadTableWrapperBase::DoCalculate));
276+
const auto func = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr<&TKqpScanWideReadTableWrapperBase::DoCalculate>());
277277
const auto self = CastInst::Create(Instruction::IntToPtr, ConstantInt::get(Type::getInt64Ty(context), uintptr_t(this)), ptrType, "self", block);
278278
const auto funcType = FunctionType::get(Type::getInt32Ty(context), { self->getType(), ctx.Ctx->getType(), fields->getType() }, false);
279279
const auto funcPtr = CastInst::Create(Instruction::IntToPtr, func, PointerType::getUnqual(funcType), "fetch_func", block);
@@ -410,7 +410,7 @@ class TKqpScanBlockReadTableWrapperBase : public TStatelessWideFlowCodegenerator
410410
new StoreInst(init, fields, &ctx.Func->getEntryBlock().back());
411411

412412
const auto ptrType = PointerType::getUnqual(StructType::get(context));
413-
const auto func = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TKqpScanBlockReadTableWrapperBase::DoCalculate));
413+
const auto func = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr<&TKqpScanBlockReadTableWrapperBase::DoCalculate>());
414414
const auto self = CastInst::Create(Instruction::IntToPtr, ConstantInt::get(Type::getInt64Ty(context), uintptr_t(this)), ptrType, "self", block);
415415
const auto funcType = FunctionType::get(Type::getInt32Ty(context), { self->getType(), ctx.Ctx->getType(), fields->getType() }, false);
416416
const auto funcPtr = CastInst::Create(Instruction::IntToPtr, func, PointerType::getUnqual(funcType), "fetch_func", block);

0 commit comments

Comments
 (0)