src/ir.cpp(992): Panic: Invalid abi type pass kind: proc()
oskarnp opened this issue · 4 comments
oskarnp commented
macOS Catalina 10.15.3
Odin commit e1bdaa9
LLVM 10.0.0
package p1
Params :: struct {
cb: proc(),
}
run :: proc(x: Params) {
x.cb();
}
package p2
import "../p1"
my_cb :: proc() {
}
main :: proc() {
p1.run({
cb = my_cb
});
}
$ ls
p1/ p2/
$ cd p2
$ odin run .
src/ir.cpp(992): Panic: Invalid abi type pass kind: proc()
zsh: illegal hardware instruction odin run .
gingerBill commented
This should be fixed
oskarnp commented
@gingerBill I tested this on latest master 0aaab84
Still same issue for me.
MacOS Catalina 10.15.5 (19F101)
Odin 0aaab84
LLVM 10.0.0
gingerBill commented
Accidentally closed the wrong issue.
gingerBill commented
Dead code.