Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
lriggs committed Nov 6, 2023
1 parent b4af98a commit a057f58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion cpp/src/gandiva/llvm_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,6 @@ void LLVMGenerator::Visitor::Visit(const VectorReadVarLenValueListDex& dex) {
llvm::Value* offsets_slot_index =
builder->CreateAdd(loop_var_, GetSliceOffset(dex.OffsetsIdx()));

int i = 0;
// => offset_start = offsets[loop_var]
slot = builder->CreateGEP(type, offsets_slot_ref, offsets_slot_index);
llvm::Value* offset_start = builder->CreateLoad(type, slot, "offset_start");
Expand Down
4 changes: 1 addition & 3 deletions cpp/src/gandiva/tests/list_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,7 @@ for (auto& array_data : outputs2) {
}
std::cout << "LR ====================THIRD=WAY================================== " << std::endl;
{
{
std::shared_ptr<arrow::DataType> listDt = std::make_shared<arrow::Int32Type>();
std::shared_ptr<arrow::DataType> dt = std::make_shared<arrow::ListType>(listDt);
Expand Down

0 comments on commit a057f58

Please sign in to comment.