diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-09 18:36:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-09 18:36:01 -0400 |
| commit | 638d5c3aca7ce1e4fd10060079caa0acb66144c0 (patch) | |
| tree | 7001b05a51eea62061ad9dfcba8b99d904ea1be5 /src/codegen.cpp | |
| parent | 52c01840ce36f6ed6528fc62c6f3c1426bdce914 (diff) | |
| parent | 3fd2cd43678d52ca2f737d991edaddfd8b73c2a4 (diff) | |
| download | zig-638d5c3aca7ce1e4fd10060079caa0acb66144c0.tar.gz zig-638d5c3aca7ce1e4fd10060079caa0acb66144c0.zip | |
Merge pull request #4700 from Vexu/noasync
Implement new noasync syntax
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index ef567c27aa..a67b8dc00b 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -687,6 +687,7 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) { case ScopeIdLoop: case ScopeIdSuspend: case ScopeIdCompTime: + case ScopeIdNoAsync: case ScopeIdRuntime: case ScopeIdTypeOf: case ScopeIdExpr: @@ -968,7 +969,7 @@ static Buf *panic_msg_buf(PanicMsgId msg_id) { case PanicMsgIdResumedFnPendingAwait: return buf_create_from_str("resumed an async function which can only be awaited"); case PanicMsgIdBadNoAsyncCall: - return buf_create_from_str("async function called with noasync suspended"); + return buf_create_from_str("async function called in noasync scope suspended"); case PanicMsgIdResumeNotSuspendedFn: return buf_create_from_str("resumed a non-suspended function"); case PanicMsgIdBadSentinel: @@ -3934,6 +3935,7 @@ static void render_async_var_decls(CodeGen *g, Scope *scope) { case ScopeIdLoop: case ScopeIdSuspend: case ScopeIdCompTime: + case ScopeIdNoAsync: case ScopeIdRuntime: case ScopeIdTypeOf: case ScopeIdExpr: |
