Skip to content

Commit f646f5d

Browse files
committed
---
yaml --- r: 926 b: refs/heads/master c: e731520 h: refs/heads/master v: v3
1 parent ae08e1e commit f646f5d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
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: 244c59ac205fdb28128908f39d39b3eb9cb7a772
2+
refs/heads/master: e731520be5d43059b5b87ffc8e1b249e4a824a9a

trunk/src/comp/middle/trans.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ fn T_taskptr() -> TypeRef {
239239
}
240240

241241
fn type_of(@trans_ctxt cx, @typeck.ty t) -> TypeRef {
242+
let TypeRef llty = type_of_inner(cx, t);
243+
check (llty as int != 0);
244+
ret llty;
245+
}
246+
247+
fn type_of_inner(@trans_ctxt cx, @typeck.ty t) -> TypeRef {
242248
alt (t.struct) {
243249
case (typeck.ty_nil) { ret T_nil(); }
244250
case (typeck.ty_bool) { ret T_bool(); }

0 commit comments

Comments
 (0)