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

Fix assertions seen in clang13 due to type mismatches. #664

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

vgvassilev
Copy link
Owner

When we synthesize the 0 constant we do not take into account if the corresponding type matches to IntTy. In case it does not match we need to add the necessary implicit casts.

This patch fixes an issue that became visible after landing PR #655.

When we synthesize the 0 constant we do not take into account if the
corresponding type matches to IntTy. In case it does not match we need to add
the necessary implicit casts.

This patch fixes an issue that became visible after landing PR #655.
@vgvassilev vgvassilev force-pushed the fix-clang-13-asserts branch from 815d6f3 to 925e59d Compare December 3, 2023 20:13
@vgvassilev vgvassilev requested a review from parth-07 December 3, 2023 20:13
Copy link
Contributor

github-actions bot commented Dec 3, 2023

clang-tidy review says "All clean, LGTM! 👍"

Copy link

codecov bot commented Dec 3, 2023

Codecov Report

Merging #664 (925e59d) into master (ec76b70) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #664   +/-   ##
=======================================
  Coverage   94.36%   94.36%           
=======================================
  Files          48       48           
  Lines        7063     7065    +2     
=======================================
+ Hits         6665     6667    +2     
  Misses        398      398           
Files Coverage Δ
lib/Differentiator/VisitorBase.cpp 97.81% <100.00%> (+0.01%) ⬆️
Files Coverage Δ
lib/Differentiator/VisitorBase.cpp 97.81% <100.00%> (+0.01%) ⬆️

@vgvassilev vgvassilev added this to the v1.3 milestone Dec 4, 2023
@vgvassilev vgvassilev merged commit 232d17b into master Dec 6, 2023
75 checks passed
@vgvassilev vgvassilev deleted the fix-clang-13-asserts branch December 6, 2023 15:56
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.

2 participants