-
Notifications
You must be signed in to change notification settings - Fork 19
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
Null function body not handled #389
Comments
I think it suffices to put an empty hcstmt node, specifically something like this:
|
fixed in 5c2c1fe |
Currently, a hVardecl is generated within the function body, which should be outside:
It should be
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/intel/systemc-compiler/blob/main/designs/tests/method/test_fcall.cpp
globFunc1 has no function body, thus in the function definition hcode, the body is omitted. However, an empty body is not accepted by hcode parser. Should the hcode plugin generate a fake return stmt or should the hcode parser accept a null body?
The text was updated successfully, but these errors were encountered: