about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-02-14 16:33:51 -0800
committerGraydon Hoare <graydon@mozilla.com>2011-02-14 16:33:51 -0800
commit84dd64b6cf047444e03b94e63e00508ecc4046aa (patch)
tree1b225bab1fb603bb951950ab3a291b657e5fac61
parent890d027b653edd1722b186a5723944e622736313 (diff)
downloadrust-84dd64b6cf047444e03b94e63e00508ecc4046aa.tar.gz
rust-84dd64b6cf047444e03b94e63e00508ecc4046aa.zip
Switch ast.is_call_expr check in trans to non-typestate form.
-rw-r--r--src/comp/middle/trans.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 972683e9ce4..1bf278a7797 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -3215,7 +3215,7 @@ fn trans_ret(@block_ctxt cx, &option.t[@ast.expr] e) -> result {
 
 fn trans_be(@block_ctxt cx, @ast.expr e) -> result {
     // FIXME: This should be a typestate precondition
-    check ast.is_call_expr(e);
+    check (ast.is_call_expr(e));
     // FIXME: Turn this into a real tail call once
     // calling convention issues are settled
     ret trans_ret(cx, some(e));