diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-04-13 12:28:07 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-04-13 12:28:07 -0700 |
| commit | 83a59c4d077ead78a8c0ccecf8d4f7970309bf76 (patch) | |
| tree | 956c3b56719601a2c2d437515641166929154960 /src/codegen.cpp | |
| parent | 3f9632bb404584db872ed8e2318f770cde8b16ee (diff) | |
| download | zig-83a59c4d077ead78a8c0ccecf8d4f7970309bf76.tar.gz zig-83a59c4d077ead78a8c0ccecf8d4f7970309bf76.zip | |
fix evaluating generic functions in wrong context
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 4a1ea84a05..70648d252f 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -3033,6 +3033,7 @@ static void gen_const_globals(CodeGen *g) { } else { expr->const_llvm_val = gen_const_val(g, type_entry, const_val); } + assert(expr->const_llvm_val); } } |
