diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-04-10 12:04:25 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-04-10 12:04:25 -0700 |
| commit | 0683bd8bf66c00d38f79d49319b5d80ac1f9a470 (patch) | |
| tree | 14a189d75708cbca15b770fdb8b947fd0f0a62c5 /src/analyze.cpp | |
| parent | fddfc314d647b06fb65e8a94f670a537a1d4bbb4 (diff) | |
| download | zig-0683bd8bf66c00d38f79d49319b5d80ac1f9a470.tar.gz zig-0683bd8bf66c00d38f79d49319b5d80ac1f9a470.zip | |
fix crash when casting undefined to slice
also fix crash having to do with runtime allocated stack memory
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index fb6894eba0..321915d6ea 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3838,6 +3838,7 @@ static void eval_const_expr_implicit_cast(CodeGen *g, AstNode *node, AstNode *ex return; } const_val->depends_on_compile_var = other_val->depends_on_compile_var; + const_val->undef = other_val->undef; assert(other_val != const_val); switch (node->data.fn_call_expr.cast_op) { |
