fix evaluating generic functions in wrong context

This commit is contained in:
Andrew Kelley
2016-04-13 12:28:07 -07:00
parent 3f9632bb40
commit 83a59c4d07
3 changed files with 13 additions and 6 deletions

View File

@@ -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);
}
}