diff options
| author | Jimmi HC <jimmiholstchristensen@gmail.com> | 2019-04-24 15:04:58 +0200 |
|---|---|---|
| committer | Jimmi HC <jimmiholstchristensen@gmail.com> | 2019-04-24 15:04:58 +0200 |
| commit | 1a2e02e267216bb35937d25598c773255d830b25 (patch) | |
| tree | e48d37cb4f083692dffb89b57ec75795d374991b /src/ast_render.cpp | |
| parent | 3bc361178c0f37ee9ffb67698401027a9f656664 (diff) | |
| download | zig-1a2e02e267216bb35937d25598c773255d830b25.tar.gz zig-1a2e02e267216bb35937d25598c773255d830b25.zip | |
fixed #2356
const_ptr_pointee_unchecked did not take into account that if the
pointer is zero sized, then const_val->data.x_ptr.special would be
ConstPtrSpecialInvalid. This commit fixes this by also checking
that the child type of the pointer only have one possible value
and just returns that value.
Diffstat (limited to 'src/ast_render.cpp')
0 files changed, 0 insertions, 0 deletions
