about summary refs log tree commit diff
path: root/src/comp/middle
diff options
context:
space:
mode:
authorLindsey Kuper <lkuper@mozilla.com>2011-07-28 15:01:12 -0700
committerLindsey Kuper <lkuper@mozilla.com>2011-07-28 15:01:12 -0700
commit0ea5a8a6edef802eea4a01e7c56f9479f19a1789 (patch)
tree427e8a1546b94a90002f249815cf0d1cf024e99c /src/comp/middle
parentb24da1c2e5d94faace40a934720b3b200309fb41 (diff)
downloadrust-0ea5a8a6edef802eea4a01e7c56f9479f19a1789.tar.gz
rust-0ea5a8a6edef802eea4a01e7c56f9479f19a1789.zip
Updated alt indenting.
Diffstat (limited to 'src/comp/middle')
-rw-r--r--src/comp/middle/trans.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 186a0198cba..15ba8a8574f 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -6595,17 +6595,17 @@ fn process_fwding_mthd(cx: @local_ctxt, sp: &span, m: @ty::method,
 
     // Do backwarding if necessary.
     alt (backwarding_vtbl) {
-        none. { /* fall through */ }
-        some(bv) {
-            // Grab the vtable out of the self-object.
-            let llself_obj_vtbl =
-                bcx.build.GEP(llself_obj_ptr, ~[C_int(0),
-                                                C_int(abi::obj_field_vtbl)]);
-
-            // And replace it with the backwarding vtbl.
-            let llbv = bcx.build.PointerCast(bv, T_ptr(T_empty_struct()));
-            bcx.build.Store(llbv, llself_obj_vtbl);
-        }
+      none. { /* fall through */ }
+      some(bv) {
+        // Grab the vtable out of the self-object.
+        let llself_obj_vtbl =
+            bcx.build.GEP(llself_obj_ptr, ~[C_int(0),
+                                            C_int(abi::obj_field_vtbl)]);
+
+        // And replace it with the backwarding vtbl.
+        let llbv = bcx.build.PointerCast(bv, T_ptr(T_empty_struct()));
+        bcx.build.Store(llbv, llself_obj_vtbl);
+      }
     }
 
     // Grab hold of the outer object so we can pass it into the inner object,