diff --git a/llvmpy/include/llvm_binding/conversion.h b/llvmpy/include/llvm_binding/conversion.h index 10f6286..b37f618 100644 --- a/llvmpy/include/llvm_binding/conversion.h +++ b/llvmpy/include/llvm_binding/conversion.h @@ -254,11 +254,11 @@ PyObject* py_float_from(const double& val) { // casting template struct typecast { -// Unused -// template static -// Td* from(Ts* src) { -// return llvm::dyn_cast(src); -// } + template static + Td* from(Ts* src) { + // check why this is only used in Python3 + return llvm::dyn_cast(src); + } static Td* from(void* src) {