aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-07-26 18:29:07 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-07-26 18:29:07 -0400
commit2cbad364c1d23b64ae064f8547590c133b4f070a (patch)
treeb7ff7ef918cb2a8bb3a55eacfa0ca9b95b05cafd /src/analyze.cpp
parentfd575fe1f3b45806f2cf823a2abe3727d381d4ed (diff)
downloadzig-2cbad364c1d23b64ae064f8547590c133b4f070a.tar.gz
zig-2cbad364c1d23b64ae064f8547590c133b4f070a.zip
add compile error for ignoring return value of while loop bodies
closes #1049
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 a4bfff78c3..aadee29fc8 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -4056,7 +4056,7 @@ void analyze_fn_ir(CodeGen *g, FnTableEntry *fn_table_entry, AstNode *return_typ
}
if (g->verbose_ir) {
- fprintf(stderr, "{ // (analyzed)\n");
+ fprintf(stderr, "fn %s() { // (analyzed)\n", buf_ptr(&fn_table_entry->symbol_name));
ir_print(g, stderr, &fn_table_entry->analyzed_executable, 4);
fprintf(stderr, "}\n");
}