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

Returning void as a value #218

Closed
threadedstream opened this issue Apr 18, 2022 · 3 comments
Closed

Returning void as a value #218

threadedstream opened this issue Apr 18, 2022 · 3 comments

Comments

@threadedstream
Copy link

As per LLVM Language Reference Manual

The void type does not represent any value and has no size.

but NewRet expects a value. Obviously, I cannot pass the type. Is there any work-around?

@threadedstream
Copy link
Author

Wouldn't it violate the rules if I write a value wrapper around a void type?

@dannypsnl
Copy link
Member

use NewRet(nil)

@threadedstream
Copy link
Author

Oh, thank you.

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

2 participants