Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid LLVM-IR: "error: use of undefined value %var..." #61

Open
myCrack opened this issue Feb 18, 2022 · 0 comments
Open

Invalid LLVM-IR: "error: use of undefined value %var..." #61

myCrack opened this issue Feb 18, 2022 · 0 comments

Comments

@myCrack
Copy link
Contributor

myCrack commented Feb 18, 2022

# test.mpl

()()() [
  0 [a:;
    #@a !a    # <<<<<<<< Uncomment this line.
    1nx @a addressToReference !a
    a
  ] call _:;
] "main" exportFunction
> mplc -version && mplc test.mpl -ndebug && clang mpl.ll
MPL compiler version 210521
mpl.ll:48:12: error: use of undefined value '%var.11'
  ret i32* %var.11
           ^
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant