We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae08e1e commit f646f5dCopy full SHA for f646f5d
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 244c59ac205fdb28128908f39d39b3eb9cb7a772
+refs/heads/master: e731520be5d43059b5b87ffc8e1b249e4a824a9a
trunk/src/comp/middle/trans.rs
@@ -239,6 +239,12 @@ fn T_taskptr() -> TypeRef {
239
}
240
241
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 {
248
alt (t.struct) {
249
case (typeck.ty_nil) { ret T_nil(); }
250
case (typeck.ty_bool) { ret T_bool(); }
0 commit comments