We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4872860 commit c0e329eCopy full SHA for c0e329e
cpp/src/gandiva/llvm_types.h
@@ -56,7 +56,11 @@ class GANDIVA_EXPORT LLVMTypes {
56
llvm::Type* double_type() { return llvm::Type::getDoubleTy(context_); }
57
58
llvm::PointerType* ptr_type(llvm::Type* type) {
59
+#if LLVM_VERSION_MAJOR >= 21
60
return llvm::PointerType::get(context_, 0);
61
+#else
62
+ return llvm::PointerType::get(type, 0);
63
+#endif
64
}
65
66
llvm::PointerType* i8_ptr_type() { return ptr_type(i8_type()); }
0 commit comments