Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 9ee00c9

Browse files
committed
Fix void* -> i8* conversion
1 parent a19ba01 commit 9ee00c9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/codegen/operator/csv_scan_translator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ void CSVScanTranslator::InitializeQueryState() {
7474
// Cast the runtime type to an opaque void*. This is because we're calling
7575
// into pre-compiled C++ that doesn't know that the dynamically generated
7676
// RuntimeState* looks like.
77-
llvm::Value *query_state_ptr = codegen->CreatePointerCast(
78-
codegen.GetState(), codegen.VoidType()->getPointerTo());
77+
llvm::Value *query_state_ptr =
78+
codegen->CreatePointerCast(codegen.GetState(), codegen.VoidPtrType());
7979

8080
// Call CSVScanner::Init()
8181
codegen.Call(CSVScannerProxy::Init,

src/include/codegen/proxy/type_builder.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ DEFINE_PRIMITIVE_BUILDER(unsigned long, Int64);
5353
DEFINE_PRIMITIVE_BUILDER(long long, Int64);
5454
DEFINE_PRIMITIVE_BUILDER(unsigned long long, Int64);
5555
DEFINE_PRIMITIVE_BUILDER(double, Double);
56+
DEFINE_PRIMITIVE_BUILDER(void *, VoidPtr);
57+
DEFINE_PRIMITIVE_BUILDER(char *, CharPtr);
58+
DEFINE_PRIMITIVE_BUILDER(unsigned char *, CharPtr);
5659
#undef DEFINE_PRIMITIVE_BUILDER
5760

5861
/// Const

0 commit comments

Comments
 (0)