Created
March 1, 2016 20:04
-
-
Save arielb1/bbb22174eefbd1de6ddd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIR for method clone in Foo.::std::clone::Clone::clone (id=14) | |
fn(arg0: &Foo) -> Foo { | |
let tmp0: &U; | |
let tmp1: &V; | |
let var0: U; | |
let var1: V; | |
begin: { | |
goto clone_0; | |
} | |
bb1: { | |
return; | |
} | |
clone_0: { | |
tmp0 = &((*arg0).0: U); | |
var0 = U::clone(tmp0) -> [return: clone_1, unwind: u_clone_0]; | |
} | |
clone_1: { | |
tmp1 = &((*arg0).1: V); | |
var1 = V::clone(tmp1) -> [return: finish, unwind: u_clone_1]; | |
} | |
finish: { | |
return = Foo(var0, var1); | |
goto bb1; | |
} | |
u_clone_1: { | |
drop(var0) -> u_clone_0; | |
} | |
u_clone_0: { | |
resume; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment