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

refactor(box libfuncs): use BlockExt trait #545

Closed
wants to merge 9 commits into from

Conversation

FeliGR
Copy link

@FeliGR FeliGR commented Apr 24, 2024

Checklist

Copy link
Member

@edg-l edg-l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you contribution!

I left some issues i found

src/libfuncs/box.rs Outdated Show resolved Hide resolved
src/libfuncs/box.rs Outdated Show resolved Hide resolved
@igaray igaray added the odhack label Apr 24, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 92.30769% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 88.69%. Comparing base (1bbda33) to head (b782a6c).
Report is 8 commits behind head on main.

Files Patch % Lines
src/libfuncs/box.rs 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #545      +/-   ##
==========================================
- Coverage   88.85%   88.69%   -0.17%     
==========================================
  Files         108      108              
  Lines       34555    34242     -313     
==========================================
- Hits        30705    30372     -333     
- Misses       3850     3870      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FeliGR FeliGR requested a review from edg-l April 24, 2024 16:58
edg-l
edg-l previously approved these changes Apr 25, 2024
src/libfuncs/box.rs Outdated Show resolved Hide resolved
azteca1998
azteca1998 previously approved these changes Apr 25, 2024
@FeliGR FeliGR requested a review from edg-l April 26, 2024 13:51
edg-l
edg-l previously approved these changes May 6, 2024
juanbono
juanbono previously approved these changes May 8, 2024
@juanbono
Copy link
Member

juanbono commented May 8, 2024

Please fix conflict @FeliGR

@FeliGR FeliGR dismissed stale reviews from edg-l and azteca1998 via b782a6c May 9, 2024 04:19
))
.result(0)?
.into();
let value_len = entry.const_int(context, location, inner_layout.pad_to_align().size(), 64)?;

let ptr = entry
.append_operation(llvm::nullptr(opaque_pointer(context), location))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here this should be refactored using append_op_result no?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and the next operation too (the ReallocBindingsMeta::realloc).

@igaray igaray closed this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants