AnyDSL / thorin

The Higher-Order Intermediate Representation

Home Page:https://anydsl.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thorin::Node_TypeParam not handled in CodeGen::convert(Type type)

richardmembarth opened this issue · comments

Thorin segfaults since thorin::Node_TypeParam is nod handled in CodeGen::convert(Type type), see commit AnyDSL/impala@93237d5

This cannot work. LLVM does not support polymorphism.

So this needs to be resolved earlier?

yes, I can write a pass which rewrites all uses of polymorphic "C" externs accordingly. It's not hard.

We will solve this issue in the long term via traits / better type system.