aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-08-11 19:53:10 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-08-11 19:53:10 -0400
commit4d8d513e16d308131846d98267bc844bf702e9ce (patch)
tree44bf7273c880681aa6193d45a8830510426eff24 /src/analyze.cpp
parentaf8c6ccb4bcae7baf30f3b1032a98b82f39d9c26 (diff)
downloadzig-4d8d513e16d308131846d98267bc844bf702e9ce.tar.gz
zig-4d8d513e16d308131846d98267bc844bf702e9ce.zip
all tests passing
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 7482ba92ba..30aa82a216 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -5325,7 +5325,7 @@ static Error resolve_coro_frame(CodeGen *g, ZigType *frame_type) {
if (*instruction->name_hint == 0) {
name = buf_ptr(buf_sprintf("@local%" ZIG_PRI_usize, alloca_i));
} else {
- name = instruction->name_hint;
+ name = buf_ptr(buf_sprintf("%s.%" ZIG_PRI_usize, instruction->name_hint, alloca_i));
}
field_names.append(name);
field_types.append(child_type);