-
Notifications
You must be signed in to change notification settings - Fork 124
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
Destroy objects at end of scope #322
Comments
We actually do |
I am not planning to work on this right away. I am working on vector types #284 right now. (Can I somehow get permission to make some changes to issues, at least to assign them to myself?) |
Done, let me know if it works! |
First part of the fix: d732147, next is to fix some dtor codegen issues. Note that this would still crash if |
The original test program now works for me. Destructors are called when falling off the end of a scope. But destructors are not called when jumping out of a scope. This program is missing some destructor calls. Should I open a new issue for this, or reopen this one?
|
Thanks for reporting more variations, created #348 to track it! |
ClangIR does not call destructors when objects go out of scope. It does that silently, not even a "NYI" message.
The text was updated successfully, but these errors were encountered: