]> git.lizzy.rs Git - rust.git/commit
Split Call into Call and DivergingCall
authorSimonas Kazlauskas <git@kazlauskas.me>
Mon, 14 Dec 2015 21:27:58 +0000 (23:27 +0200)
committerSimonas Kazlauskas <git@kazlauskas.me>
Wed, 6 Jan 2016 11:40:57 +0000 (13:40 +0200)
commit893a66d7a11150615c385a190d0140f0b8549409
tree8acfd3409cbfcb7483eb8666841b58205ce39751
parent7312e0a16328e6227d7fc593176a1fd12fea4342
Split Call into Call and DivergingCall

DivergingCall is different enough from the regular converging Call to warrant the split. This also
inlines CallData struct and creates a new CallTargets enum in order to have a way to differentiate
between calls that do not have an associated cleanup block.

Note, that this patch still does not produce DivergingCall terminator anywhere. Look for that in
the next patches.
src/librustc/mir/repr.rs
src/librustc/mir/visit.rs
src/librustc_mir/build/expr/into.rs
src/librustc_mir/transform/erase_regions.rs
src/librustc_trans/trans/mir/block.rs