Skip to content

Conversation

@leonardt
Copy link
Owner

Fixes a clang error that wasn't present in older versions (not sure how
this worked before)

verilogAST-src/include/verilogAST.hpp:118:50: error: field 'expr' is uninitialized when used here [-Werror,-Wuninitialized]
  Cast(const Cast& rhs) : width(rhs.width), expr(expr->clone()){};

Fixes a clang error that wasn't present in older versions (not sure how
this worked before)
```
verilogAST-src/include/verilogAST.hpp:118:50: error: field 'expr' is uninitialized when used here [-Werror,-Wuninitialized]
  Cast(const Cast& rhs) : width(rhs.width), expr(expr->clone()){};
```
@leonardt leonardt requested a review from rsetaluri September 28, 2021 21:58
Copy link
Collaborator

@rsetaluri rsetaluri left a comment

Choose a reason for hiding this comment

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

weird...

@codecov
Copy link

codecov bot commented Sep 28, 2021

Codecov Report

Merging #68 (6bc9f8e) into master (72b212d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #68   +/-   ##
=======================================
  Coverage   98.81%   98.81%           
=======================================
  Files          17       17           
  Lines        2789     2789           
=======================================
  Hits         2756     2756           
  Misses         33       33           
Impacted Files Coverage Δ
include/verilogAST.hpp 92.65% <ø> (ø)

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 72b212d...6bc9f8e. Read the comment docs.

@leonardt leonardt merged commit 31d94f9 into master Sep 30, 2021
@leonardt leonardt deleted the fix-copy-constructor-bug branch September 30, 2021 00:50
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.

3 participants