We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2991c33 commit f51ca9dCopy full SHA for f51ca9d
1 file changed
src/lpython/python_evaluator.cpp
@@ -150,7 +150,12 @@ Result<PythonCompiler::EvalResult> PythonCompiler::evaluate(
150
type = type->getStructElementType(2);
151
LCOMPILERS_ASSERT(type->isPointerTy())
152
result.structure.element_size = e->get_jit_data_layout().getTypeAllocSize(
153
- type->getNonOpaquePointerElementType());
+#if LLVM_VERSION_MAJOR >= 14
154
+ type->getNonOpaquePointerElementType()
155
+#else
156
+ type->getPointerElementType()
157
+#endif
158
+ );
159
}
160
161
0 commit comments