aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-29 13:01:28 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-29 13:01:28 +0100
commit3546391311d84376a758ee0fcc806e192d6a18ce (patch)
treef8b68340491e86192b8acbe6e7287a8236fed127 /src/ir.cpp
parent24c812115e8cbc905b1a5c1d73182da5db94dfde (diff)
parent28be0ad69b98868c5a77f0fe9d2898391b1ac400 (diff)
Merge branch 'master' of https://github.com/gingerBill/Odin
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 36efefb94..6603ac2e9 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -6370,9 +6370,8 @@ void ir_build_stmt_internal(irProcedure *proc, AstNode *node) {
case_ast_node(ds, DeferStmt, node);
ir_emit_comment(proc, str_lit("DeferStmt"));
isize scope_index = proc->scope_index;
- if (ds->stmt->kind == AstNode_BlockStmt) {
- scope_index--;
- }
+ // TODO(bill): What was the original rationale behind this line?
+ // if (ds->stmt->kind == AstNode_BlockStmt) scope_index--;
ir_add_defer_node(proc, scope_index, ds->stmt);
case_end;