Skip to content

Commit 6d8ebff

Browse files
committed
---
yaml --- r: 2166 b: refs/heads/master c: 9034a8f h: refs/heads/master v: v3
1 parent 2584ee9 commit 6d8ebff

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 2e6711fca5005364e908eae61ece8083cd334124
2+
refs/heads/master: 9034a8fbd6d44761c182e760a4aedd3a16cea912

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5133,7 +5133,7 @@ fn trans_log(int lvl, @block_ctxt cx, @ast.expr e) -> result {
51335133
lcx.ccx.module_data.insert(modname, global);
51345134
}
51355135

5136-
auto log_cx = new_sub_block_ctxt(cx, "log");
5136+
auto log_cx = new_scope_block_ctxt(cx, "log");
51375137
auto after_cx = new_sub_block_ctxt(cx, "after");
51385138
auto load = cx.build.Load(global);
51395139
auto test = cx.build.ICmp(lib.llvm.LLVMIntSGE, load, C_int(lvl));
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fn main() {
2+
if (false) {
3+
log_err "foo" + "bar";
4+
}
5+
}
6+

0 commit comments

Comments
 (0)