diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2021-05-06 16:08:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-06 16:08:15 -0700 |
| commit | a2725fd03febf32051811af2fa50fd0de3b61dde (patch) | |
| tree | b5f4c7c6af26d7bd23fc2cf49b56399f821d5512 /docs/user-guide | |
| parent | 8ee5e4501c746e34a1b59c643422cca56e2be214 (diff) | |
Fix for uninitialized field (#1838)
The `OverloadedExpr` type didn't provide a default value for its field:
Name* name;
This led to a null-pointer crash in the logic that deals with synthesizing interface requirements because it creates an `OverloadedExpr` but doesn't initialize the field.
This change makes two fixes:
1. The logic in the synthesis path actually initializes `name` so that it can feed into any downstream error messages
2. The `OverloadedExpr` declaration now includes an initial value for `name` so that it will at least be null instead of garbage if we slip up again
Diffstat (limited to 'docs/user-guide')
0 files changed, 0 insertions, 0 deletions
