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

Avoid using raw pointers in InlineVisitor #845

Merged
merged 3 commits into from
Jun 15, 2022
Merged

Conversation

iomaganaris
Copy link
Contributor

Usage of raw pointers in InlineVisitor seems like it generated bugs when running on the Apple M1 processor. Instead of using raw pointers handle cloning statements in need of replacing using unique_ptr.

Fixes #809

Note: Unfortunately I couldn't validate this in any way apart from running NMODL multiple times since valgrind is not working on mac. Before this change rerunning NMODL with certain mod file would randomly crash with issues similar to the ones on mentioned on the above issue.

@iomaganaris iomaganaris requested review from alkino and pramodk April 19, 2022 16:46
@codecov-commenter
Copy link

codecov-commenter commented Apr 19, 2022

Codecov Report

Merging #845 (f2762ea) into master (cd5728e) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #845   +/-   ##
=======================================
  Coverage   61.13%   61.13%           
=======================================
  Files         189      189           
  Lines       28342    28342           
=======================================
  Hits        17327    17327           
  Misses      11015    11015           
Impacted Files Coverage Δ
src/visitors/inline_visitor.cpp 90.66% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd5728e...f2762ea. Read the comment docs.

@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #49317 (:white_check_mark:) have been uploaded here!

Status and direct links:

@alkino alkino force-pushed the magkanar/fix_m1_issue branch from 047205f to acdb712 Compare May 3, 2022 11:12
@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #52461 (:white_check_mark:) have been uploaded here!

Status and direct links:

@alkino alkino closed this Jun 15, 2022
@alkino alkino reopened this Jun 15, 2022
@alkino alkino force-pushed the magkanar/fix_m1_issue branch from acdb712 to f2762ea Compare June 15, 2022 08:33
@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #60697 (:white_check_mark:) have been uploaded here!

Status and direct links:

@alkino alkino merged commit eeb3d92 into master Jun 15, 2022
@alkino alkino deleted the magkanar/fix_m1_issue branch June 15, 2022 09:10
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

Successfully merging this pull request may close these issues.

Code generation issue with inlining
4 participants