fix noreturn attribute for msvc

This commit is contained in:
Andrew Kelley 2019-10-03 22:51:00 -04:00
parent eca2aa66fe
commit 071af5c1d6
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
2 changed files with 1 additions and 1 deletions

View File

@ -1724,7 +1724,6 @@ static LLVMValueRef ir_llvm_value(CodeGen *g, IrInstruction *instruction) {
return instruction->llvm_value;
}
ATTRIBUTE_NORETURN
void codegen_report_errors_and_exit(CodeGen *g) {
assert(g->errors.length != 0);
for (size_t i = 0; i < g->errors.length; i += 1) {

View File

@ -64,6 +64,7 @@ void codegen_release_caches(CodeGen *codegen);
bool codegen_fn_has_err_ret_tracing_arg(CodeGen *g, ZigType *return_type);
bool codegen_fn_has_err_ret_tracing_stack(CodeGen *g, ZigFn *fn, bool is_async);
ATTRIBUTE_NORETURN
void codegen_report_errors_and_exit(CodeGen *g);
#endif