diff options
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-03-03 11:04:04 -0800 |
|---|---|---|
| committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-03-03 11:04:04 -0800 |
| commit | 0924f17a234c48c4a7a17e44a1ffac6a9026d5e5 (patch) | |
| tree | f6381f3f3e80bab71c88867b6461da9059f67304 /src | |
| parent | 65943010c70b33e711a038dff5f80066045ee1b7 (diff) | |
| download | zig-0924f17a234c48c4a7a17e44a1ffac6a9026d5e5.tar.gz zig-0924f17a234c48c4a7a17e44a1ffac6a9026d5e5.zip | |
stage2: peer resolve const u8 slices correctly
Diffstat (limited to 'src')
| -rw-r--r-- | src/Sema.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 998efadcef..a0908cf985 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -18230,7 +18230,7 @@ fn resolvePeerTypes( convert_to_slice = false; // it already is a slice // If the pointer is const then we need to const - if (candidate_ty.childType().isConstPtr()) + if (candidate_ty.isConstPtr()) seen_const = true; continue; @@ -18253,7 +18253,7 @@ fn resolvePeerTypes( convert_to_slice = false; // it already is a slice // If the prev pointer is const then we need to const - if (chosen_child_ty.isConstPtr()) + if (chosen_ty.isConstPtr()) seen_const = true; continue; |
