Skip to content

Commit 0c5fdb4

Browse files
author
Vadim Averin
committed
Fix build errors after rebase
1 parent ded3f48 commit 0c5fdb4

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

ydb/library/yql/minikql/comp_nodes/mkql_skip.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ using TBaseComputation = TStatefulFlowCodegeneratorNode<TSkipFlowWrapper>;
121121
class TWideSkipWrapper : public TSimpleStatefulWideFlowCodegeneratorNode<TWideSkipWrapper, ui64> {
122122
using TBaseComputation = TSimpleStatefulWideFlowCodegeneratorNode<TWideSkipWrapper, ui64>;
123123
public:
124-
TWideSkipWrapper(TComputationMutables& mutables, IComputationWideFlowNode* flow, IComputationNode* count, ui32 size)
124+
TWideSkipWrapper(TComputationMutables& mutables, IComputationWideFlowNode* flow, IComputationNode* count, ui32 )
125125
: TBaseComputation(mutables, flow, EValueRepresentation::Embedded)
126126
, Flow(flow)
127127
, Count(count)
@@ -131,7 +131,7 @@ using TBaseComputation = TSimpleStatefulWideFlowCodegeneratorNode<TWideSkipWrapp
131131
count = Count->GetValue(ctx).Get<ui64>();
132132
}
133133

134-
EProcessResult DoProcess(ui64& skipCount, TComputationContext& ctx, EFetchResult fetchRes, NUdf::TUnboxedValue*const* values) const {
134+
EProcessResult DoProcess(ui64& skipCount, TComputationContext& , EFetchResult fetchRes, NUdf::TUnboxedValue*const* ) const {
135135
if (fetchRes == EFetchResult::One && skipCount) {
136136
skipCount--;
137137
return EProcessResult::Fetch;

ydb/library/yql/minikql/comp_nodes/mkql_take.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ using TBaseComputation = TSimpleStatefulWideFlowCodegeneratorNode<TWideTakeWrapp
107107
count = Count->GetValue(ctx).Get<ui64>();
108108
}
109109

110-
EProcessResult DoProcess(ui64& takeCount, TComputationContext& ctx, EFetchResult fetchRes, NUdf::TUnboxedValue*const* values) const {
110+
EProcessResult DoProcess(ui64& takeCount, TComputationContext& , EFetchResult fetchRes, NUdf::TUnboxedValue*const* ) const {
111111
if (takeCount == 0) {
112112
return EProcessResult::Finish;
113113
} else if (fetchRes == EFetchResult::One) {

ydb/library/yql/minikql/comp_nodes/mkql_wide_filter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ using TBaseComputation = TSimpleStatefulWideFlowCodegeneratorNode<TWideTakeWhile
196196
, TBaseWideFilterWrapper(mutables, flow, std::move(items), predicate)
197197
{}
198198

199-
void InitState(bool& stop, TComputationContext& ctx) const {
199+
void InitState(bool& stop, TComputationContext& ) const {
200200
stop = false;
201201
}
202202

@@ -236,7 +236,7 @@ using TBaseComputation = TSimpleStatefulWideFlowCodegeneratorNode<TWideSkipWhile
236236
, TBaseWideFilterWrapper(mutables, flow, std::move(items), predicate)
237237
{}
238238

239-
void InitState(bool& start, TComputationContext& ctx) const {
239+
void InitState(bool& start, TComputationContext& ) const {
240240
start = false;
241241
}
242242

ydb/library/yql/minikql/computation/mkql_computation_node_codegen_impl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ class TSimpleStatefulWideFlowCodegeneratorNode
104104
ICodegeneratorInlineWideNode::TGettersList new_getters;
105105
new_getters.reserve(getters.size());
106106
for (size_t pos = 0; pos < getters.size(); pos++) {
107-
new_getters.push_back([pos, values] (const TCodegenContext& ctx, BasicBlock*& block) -> Value* {
108-
const auto offset = GetElementPtrInst::CreateInBounds(values->getType()->getElementType(), values, {ConstantInt::get(Type::getInt64Ty(ctx.Codegen.GetContext()), pos)}, "offset", block);
109-
const auto value = new LoadInst(offset, "value", block);
107+
new_getters.push_back([pos, values, valueType] (const TCodegenContext& ctx, BasicBlock*& block) -> Value* {
108+
const auto offset = GetElementPtrInst::CreateInBounds(valueType, values, {ConstantInt::get(Type::getInt64Ty(ctx.Codegen.GetContext()), pos)}, "offset", block);
109+
const auto value = new LoadInst(valueType, offset, "value", block);
110110
return value;
111111
});
112112
}

0 commit comments

Comments
 (0)