Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 6a2791e

Browse files
committed
Remove typed pointer from getAdditionalLiteral helper method
1 parent edb5bf3 commit 6a2791e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

omniscidb/QueryEngine/RowFuncBuilder.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,10 +1342,7 @@ llvm::Value* RowFuncBuilder::getAdditionalLiteral(const int32_t off) {
13421342
lit_buff_lv,
13431343
llvm::PointerType::get(get_int_type(64, LL_CONTEXT),
13441344
lit_buff_lv->getType()->getPointerAddressSpace()));
1345-
auto* gep =
1346-
LL_BUILDER.CreateGEP(bit_cast->getType()->getScalarType()->getPointerElementType(),
1347-
bit_cast,
1348-
LL_INT(off));
1345+
auto* gep = LL_BUILDER.CreateGEP(get_int_type(64, LL_CONTEXT), bit_cast, LL_INT(off));
13491346
return LL_BUILDER.CreateLoad(get_int_type(64, LL_CONTEXT), gep);
13501347
}
13511348

0 commit comments

Comments
 (0)