-
Notifications
You must be signed in to change notification settings - Fork 1.5k
C++ function params and return values not printed in the SemIR anymore #5449
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
Comments
We now print the call params as part of printing the The parameter patterns are generally printed as part of the SemIR printed for the
... where the two empty |
Thanks @zygoloid ! I tried to follow your input, but could only solve part of the issue. Two questions remain:
There is some issue with the
Do you maybe have any hints on this? Thanks. The Draft PR for a reference: #5468. |
cc: @bricknerb |
Yes, they should both be filled in. Populating the second one is
Yeah, populating that field is also
The crash is happening here: carbon-lang/toolchain/check/pattern_match.cpp Lines 213 to 215 in 8e666ce
My guess is that the |
Uh oh!
There was an error while loading. Please reload this page.
Description of the bug:
Parameters and return values were printed in the SemIR for the C++ function declarations as well, but they are not printed anymore.
E.g. in
toolchain/check/testdata/interop/cpp/function_decl.carbon
:Before:
// CHECK:STDOUT: fn @foo[](%b.param_patt: %i32);
Now:
// CHECK:STDOUT: fn @foo();
Before:
// CHECK:STDOUT: fn @foo_int[]() -> %i32;
Now:
// CHECK:STDOUT: fn @foo_int();
The tests still work, the issue seems to be only in the printed SemIR.
It is still useful to be able to see the C++ parameter/return values types, especially for the ongoing efforts of enabling these types.
The text was updated successfully, but these errors were encountered: