snirk-lang / protosnirk

The beginnings of a programming language
MIT License
1 stars 1 forks source link

Invalid LLVM bytecode emitted for calls to void functions #81

Closed SnirkImmington closed 5 years ago

SnirkImmington commented 5 years ago

Testcase: compile/expression/call/call-void-ok.protosnirk Code to reproduce:

fn main()
    main()

LLVM gives an error because we attempt to generate this code:

%call_main-ok = call void @main()
SnirkImmington commented 5 years ago

Closed in #85.